/**
 * small col layout inside forms, complies the current requirements,
 * feel free to pimp
 */

form .row:before,
form .row:after {
    content: "";
    display: table;
}
form .row:after { clear: both; }
form .row {
    *zoom: 1;
    padding-bottom: 5px;
}
form .col { float: left; }
form .col + .col { margin-left: 15px; }


/**
 * some default basicilly-non-form-elements behaivor inside form
 */

form p { margin-bottom: 10px; }
form abbr[title] { border: 0; }

/**
 * default beahvior of form elements
 */

fieldset { margin-bottom: 15px; }

label,
select,
button,
input[type="button"],
input[type="date"],
input[type="reset"],
input[type="submit"],
input[type="radio"],
input[type="checkbox"] {
    cursor: pointer;
    vertical-align: middle;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select,
textarea,
input[type="text"],
input[type="date"],
input[type="password"] {
    display: inline-block;
    height: 20px;
    padding: 4px 6px;
    margin-bottom: 10px;
    -webkit-border-radius: 4px;
       -moz-border-radius: 4px;
            border-radius: 4px;
}

textarea {
    height: auto;
    resize: vertical;
}

textarea.noResize { resize: none; }

textarea,
input[type="text"],
input[type="date"],
input[type="password"] {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
       -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
           box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
       -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
         -o-transition: border linear 0.2s, box-shadow linear 0.2s;
            transition: border linear 0.2s, box-shadow linear 0.2s;
    box-sizing: content-box;
}

textarea:focus,
input[type="text"]:focus,
input[type="date"]:focus,
input[type="password"]:focus {
    border-color: rgba(255, 187, 0, 0.8);
    outline: 0;
    outline: thin dotted \9; /* IE6-9 */

    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 187, 0, 0.6);
       -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 187, 0, 0.6);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 187, 0, 0.6);
}

/**
 * placeholder attr
 */

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #ccc;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #ccc;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #ccc;
}

/**
 * radio / checkbox
 */

input[type="radio"],
input[type="checkbox"] {
    margin-top: 2px;
    *margin-top: -1px;
}

input[type="radio"] {
    margin-top: 1px;
    *margin-top: -2px;
}

/* radio / checkboxes have to be inside labels */
.radio,
.checkbox {
    padding-left: 20px;
    font-weight: normal;
}

.radio input[type="radio"],
.checkbox input[type="checkbox"] {
    float: left;
    margin-left: -20px;
}

/* inline elements */
.radio.inline,
.checkbox.inline {
    display: inline-block;
    margin-bottom: 10px;
    min-height: 0;
    vertical-align: middle;
}

.radio.inline + .radio.inline,
.checkbox.inline + .checkbox.inline {
    margin-left: 10px;
}

/**
 * 1. In IE7, the height of the select element cannot be changed by height, only font-size
 * 2. For IE7, add top margin to align select with labels
 */

select,
input[type="file"] {
    height: 30px; /* 1 */
    *margin-top: 4px; /* 2 */
    line-height: 30px;
}

select {
    background-color: #ffffff;
    border: 1px solid #cccccc;
}

select[multiple],
select[size] {
    height: auto;
}

/**
 * check wether elements should be inline or not
 */

label input,
label textarea,
label select,
.form-inline input,
.form-inline textarea,
.form-inline select,
.form-inline label {
    display: inline-block;
    *display: inline;
    margin-bottom: 0 !important;
    vertical-align: middle;
    *zoom: 1;
}


/* block level inputs */

.input-block {
    display: block !important;
    width: 100%;
    -moz-box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
    min-height: 30px;
}

/* ==========================================================================
   spans / little form-element-grid
   ========================================================================== */

input.span6,
textarea.span6 {
  width: 490px;
}

input.span5,
textarea.span5 {
  width: 366px;
}

input.span4,
textarea.span4 {
  width: 370px;
}

input.span3,
textarea.span3 {
  width: 230px;
}

input.span2,
textarea.span2 {
  width: 90px;
}

input.span1,
textarea.span1 {
  width: 40px;
}

select.span1 { width: 50px; }
select.span2 { width: 90px; }
select.span3 { width: 180px; }
/*select.span4 { width: not set yet; }*/
/*select.span5 { width: not set yet; }*/
select.span6 { width: 500px; }

/* ==========================================================================
   validation states
   ========================================================================== */

label.error,
label.error > * {
    color: #f00 !important;
}

.error input,
.error select,
.error textarea {
    border-color: #e30101;
    background-color: #ffbfbf;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
       -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.error input:focus,
.error select:focus,
.error textarea:focus {
    border-color: #ce0000;
    background-color: #ffe7e7;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f00;
       -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f00;
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f00;
}


/* ==========================================================================
   buttons
   ========================================================================== */

    /* buttons in FLAT Design, should be named .btn in future
       ========================================================================== */

        .btn {
            font-family: Arial, "Nimbus Sans L", sans-serif;
            display: inline-block;
            *display: inline;
            padding: 7px 10px;
            line-height: 20px;
            margin-bottom: 0;
            *margin-left: .3em;
            color: #444 !important;
            text-transform: uppercase;
            font-weight: bold;
            font-size: 12px;
            text-align: center;
            vertical-align: middle;
            cursor: pointer;
            background-color: #e8e8e8;
            border: 0;
            -webkit-border-radius: 5px;
               -moz-border-radius: 5px;
                    border-radius: 5px;
            *zoom: 1;

            /*-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
               -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
                    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);*/
            position: relative;
            box-shadow:
                inset -1px 1px 0 0 rgba(0, 0, 0, 0.02),

                -1px 0px 0 rgba(0,0,0,0.05),
                -1px 0px 0 0 rgba(0,0,0,0.1),
                inset 0 -2px 0 0 rgba(0,0,0,.1);


            -webkit-transition: background-color 250ms ease-in-out;
            transition: background-color 250ms ease-in-out;
        }

/*        *//* v-centering the text for IE8 *//*

        #IE8 .btn {
            padding-top: 6px;
            padding-bottom: 8px;
        }*/

        .btn-small {
            padding: 2px 8px;
            font-size: 11px;
        }

        .btn-large {
            padding: 11px 20px;
            font-size: 14px;
        }


        .btn:hover,
        .btn:hover b,
        .btn:active,
        .btn:active b {
            color: #333333 !important;
            text-decoration: none;
            background-color: #dcdcdc;
        }

        .btn:focus {
          outline: thin dotted #333;
          outline: 5px auto -webkit-focus-ring-color;
          outline-offset: -2px;
        }

        #IE8 .btn:focus { outline: 0; }

        .btn:active {
            box-shadow: inset 0px 4px 5px -3px rgba(0,0,0,0.1),
                        inset 4px 0px 5px -3px rgba(0,0,0,0.1);
            outline: 0;
        }

        .btn-primary {
            background-color: #f1b91c;
            color: #444 !important;
        }

        .btn-primary:hover,
        .btn-primary:focus,
        .btn-primary:active {
            background-color: #e7a900;
        }

        .btn-intent {
            color: #fff !important;
            background-color: #7aa23f;
        }

        .btn-intent:hover,
        .btn-intent:focus,
        .btn-intent:active {
            color: #fff !important;
            background-color: #6f9439;
        }

        .btn-dark {
            color: #fff !important;
            background-color: #1e3146;
        }

        .btn-dark:hover,
        .btn-dark:focus,
        .btn-dark:active {
            color: #fff !important;
            background-color: #162433;
        }

        .btn-warn {
            color: #fff !important;
            background-color: #f00;
        }

        .btn-warn:hover,
        .btn-warn:focus,
        .btn-warn:active {
            color: #fff !important;
            background-color: #d00000;
        }

        /* cleanstyle: no color at all, no shadow, no bordercolor, but same size */

        .btn-cleanstyle,
        .btn-cleanstyle:hover,
        .btn-cleanstyle:active {
            background-color: transparent;
            box-shadow: none;
        }

        /**
         *  no text, but size
         *  1. btn-notext for all sizes
         */

        .btn-notext {
            font: 0/0 a;
            color: transparent;
            height: 20px; /* 1 */
        }


        /* buttons with directions
          ========================================================================== */

        /* buttons in "direction-mode" needs an child element: b (used for the triangle) */

        [class*=" btn-direction-"]:active b {
            box-shadow: inset 0px 4px 5px -3px rgba(0,0,0,0.1);
        }

        /* no, thanks ie ;) */
        #IE7 [class*=" btn-direction-"] b { display: none; }

        /* buttons with direction-arrow will get an higher h-padding */

        .btn-direction-left,
        .btn-direction-right {
            padding-left: 25px;
            padding-right: 25px;
        }

        .btn-direction-left b,
        .btn-direction-right b {
            position: absolute;
            content: "";
            background-color: #e8e8e8;
            display: inline-block;
            border-radius: 5px;
            z-index: 1;
            width: 26px;
            height: 26px;
            -webkit-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            -ms-transform: rotate(45deg);
            top: 4px;
        }

        /* IE8 does not rotate elements like newer browsers will do, so we'll use border-triangles instead */

        #IE8 .btn-direction-left b,
        #IE8 .btn-direction-right b {
            width: 0;
            height: 0;
            border: 17px solid transparent;
            top: 0;
            background-color: transparent;
        }

        /* IE8 optical "cut-off" on the end of each border-triangle */

        #IE8 .btn-direction-left b:after,
        #IE8 .btn-direction-right b:after {
            content: "";
            display: block;
            width: 2px;
            height: 6px;
            background-color: #fff;
            position: absolute;
            top: 50%;
            margin-top: -3px;
        }

        /**
         * directions, left and right
         */

        /* pointing to the left */

        .btn-direction-left {
            margin-left: 20px;
            padding-left: 17px;
        }

        .btn-direction-left b {
            left: -10px;
            border-top-right-radius: 25px;
            box-shadow: inset 0 -2px 0 0 rgba(0,0,0,.1);
        }

        /* shadow on active state differs only on left pointing buttons to default value */

        .btn-direction-left:active { box-shadow: inset 0px 4px 5px -3px rgba(0,0,0,0.1); }
        .btn-direction-left:active b { box-shadow: inset 4px 0px 5px -3px rgba(0,0,0,0.1); }

        /* IE8 with triangle-borders ... */

        #IE8 .btn-direction-left b {
            left: auto;
            right: 100%;
            border-left: 0;
            border-right-color: #e8e8e8;
        }

        #IE8 .btn-direction-left b:after { left: 0; }

        /* pointing to the right */

        .btn-direction-right {
            margin-right: 20px;
            padding-right: 17px;
        }

        .btn-direction-right b {
            right: -10px;
            border-bottom-left-radius: 25px;
            box-shadow: inset -2px 0 0 0 rgba(0,0,0,.1);
        }

        /* IE8 with triangle-borders ... */

        #IE8 .btn-direction-right b {
            right: auto;
            left: 100%;
            border-right: 0;
            border-left-color: #e8e8e8;
        }

        #IE8 .btn-direction-right b:after { right: 0; }

        /**
         * setting colors for direction/arrow-elements
         */

        /* default color */
        [class*=" btn-direction-"] b {
            -webkit-transition: background 250ms ease-in-out;
            transition: background 250ms ease-in-out;
        }

        [class*=" btn-direction-"]:focus b,
        [class*=" btn-direction-"]:hover b,
        [class*=" btn-direction-"]:active b {
            background-color: #dcdcdc;
        }

        #IE8 .btn-direction-left:hover b { border-right-color: #dcdcdc; }
        #IE8 .btn-direction-right:hover b { border-left-color: #dcdcdc; }

        /* primary color */

        [class*=" btn-direction-"].btn-primary b {
            background-color: #f1b91c;
        }

        #IE8 .btn-direction-left.btn-primary b { border-right-color: #f1b91c; }
        #IE8 .btn-direction-right.btn-primary b { border-left-color: #f1b91c; }

        [class*=" btn-direction-"].btn-primary:focus b,
        [class*=" btn-direction-"].btn-primary:hover b,
        [class*=" btn-direction-"].btn-primary:active b {
            background-color: #e7a900;
        }

        #IE8 .btn-direction-left.btn-primary:hover b { border-right-color: #e7a900; }
        #IE8 .btn-direction-right.btn-primary:hover b { border-left-color: #e7a900; }

        /* intent color */

        [class*=" btn-direction-"].btn-intent b {
            background-color: #7aa23f;
        }

        #IE8 .btn-direction-left.btn-intent b { border-right-color: #7aa23f; }
        #IE8 .btn-direction-right.btn-intent b { border-left-color: #7aa23f; }

        [class*=" btn-direction-"].btn-intent:hover b,
        [class*=" btn-direction-"].btn-intent:focus b,
        [class*=" btn-direction-"].btn-intent:active b {
            background-color: #6f9439;
        }

        #IE8 .btn-direction-left.btn-intent:hover b { border-right-color: #6f9439; }
        #IE8 .btn-direction-right.btn-intent:hover b { border-left-color: #6f9439; }

        /* dark colored*/

        [class*=" btn-direction-"].btn-dark b {
            background-color: #1e3146;
        }

        #IE8 .btn-direction-left.btn-dark b { border-right-color: #1e3146; }
        #IE8 .btn-direction-right.btn-dark b { border-left-color: #1e3146; }

        [class*=" btn-direction-"].btn-dark:hover b,
        [class*=" btn-direction-"].btn-dark:focus b,
        [class*=" btn-direction-"].btn-dark:active b {
            background-color: #162433;
        }

        #IE8 .btn-direction-left.btn-dark:hover b { border-right-color: #162433; }
        #IE8 .btn-direction-right.btn-dark:hover b { border-left-color: #162433; }

        /* warn the user*/

        [class*=" btn-direction-"].btn-warn b {
            background-color: #f00;
        }

        #IE8 .btn-direction-left.btn-warn b { border-right-color: #e50000; }
        #IE8 .btn-direction-right.btn-warn b { border-left-color: #e50000; }

        [class*=" btn-direction-"].btn-warn:hover b,
        [class*=" btn-direction-"].btn-warn:focus b,
        [class*=" btn-direction-"].btn-warn:active b {
            background-color: #d00000;
        }

        #IE8 .btn-direction-left.btn-warn:hover b { border-right-color: #ba0000; }
        #IE8 .btn-direction-right.btn-warn:hover b { border-left-color: #ba0000; }

        /* size matters:
          ========================================================================== */

        /* small buttons */

        .btn-direction-left.btn-small,
        .btn-direction-right.btn-small {
            padding-left: 20px;
            padding-right: 20px;
        }

        .btn-direction-right.btn-small {
            margin-right: 15px;
            padding-right: 15px;
        }

        .btn-direction-left.btn-small {
            margin-left: 15px;
            padding-left: 15px;
        }

        [class*=" btn-direction-"].btn-small b {
            width: 16px;
            height: 16px;
            top: 4px;
            border-radius: 4px;
        }

        #IE8 [class*=" btn-direction-"].btn-small b { border-width: 12px; }

        .btn-direction-left.btn-small b {
            left: -6px;
            border-top-right-radius: 15px;
        }

        .btn-direction-right.btn-small b {
            right: -6px;
            border-bottom-left-radius: 15px;
        }

        /* large buttons */

        .btn-direction-left.btn-large,
        .btn-direction-right.btn-large {
            padding-left: 35px;
            padding-right: 35px;
        }

        .btn-direction-left.btn-large {
            margin-left: 25px;
            padding-left: 25px;
        }
        .btn-direction-right.btn-large {
            margin-right: 25px;
            padding-right: 25px;
        }

        [class*=" btn-direction-"].btn-large b {
            width: 30px;
            height: 30px;
            top: 6px;
        }

        #IE8 [class*=" btn-direction-"].btn-large b { border-width: 21px; }

        .btn-direction-left.btn-large b {
            left: -13px;
            border-top-right-radius: 30px;
        }

        .btn-direction-right.btn-large b {
            right: -13px;
            border-bottom-left-radius: 30px;
        }

        /* checkboxes/labels masked as buttons, wrap the btn element together
         * with the input-element. use .btn-checkbox on this parent
           ========================================================================== */

        [class^="btn-radio"] .btn,
        [class^="btn-checkbox"] .btn {
            display: inline-block;
            background-position: 10px 10px;
            background-repeat: no-repeat;
            padding-left: 30px;
        }

        [class^="btn-radio"] .btn { background-image: url("/img/local/onepager/rettungsgasse/icons/sprite-radios.png"); }

        [class^="btn-checkbox"] .btn { background-image: url("/img/local/onepager/rettungsgasse/icons/sprite-checkboxes.png"); }

        #IE8 [class^="btn-radio"],
        #IE8 [class^="btn-checkbox"] {
            position: relative;
        }

        #IE8 [class^="btn-radio"] .btn,
        #IE8 [class^="btn-checkbox"] .btn {
            background-image: none;
        }

        [class^="btn-radio"] input,
        [class^="btn-checkbox"] input { display: none; }

        #IE8 [class^="btn-radio"] input,
        #IE8 [class^="btn-checkbox"] input {
            display: inline-block;
            position: absolute;
            left: 10px;
            top: 50%;
            margin-top: -6px;
            z-index: 4;
        }

        /* ie8 ignores :checked selectors and following.. so we will use .checked instead (+js */
        [class^="btn-radio"] input.checked + .btn,
        [class^="btn-checkbox"] input.checked + .btn {
            background-position: 10px -178px;
            background-color: #7aa23f !important;
            color: #fff !important;
        }

        /* ie8 ignores :checked selectors and following.. so we will use .checked instead (+js */
        [class^="btn-radio"]:hover input.checked + .btn,
        [class^="btn-radio"]:focus input.checked + .btn,
        [class^="btn-radio"]:active input.checked + .btn,
        [class^="btn-checkbox"]:hover input.checked + .btn,
        [class^="btn-checkbox"]:focus input.checked + .btn,
        [class^="btn-checkbox"]:active input.checked + .btn{
            color: #fff !important;
            background-color: #6f9439;
        }


        /* for small buttons */
        .btn-radiosmall .btn-small,
        .btn-checkbox-small .btn-small {
            background-position: 5px 5px;
            padding-left: 25px;
        }

        .btn-radio-small input.checked + .btn-small,
        .btn-checkbox-small input.checked + .btn-small {
            background-position: 5px -183px;
        }

        #IE8 .btn-radio-small input,
        #IE8 .btn-checkbox-small input { left: 4px; }



        /* icons for flat buttons
           ========================================================================== */

        /**
         * 1. optical mid, because of bottom inset-shadow
         */

        .btn [class^="icon-"],
        .btn [class*=" icon-"] {
            display: inline-block;
            vertical-align: middle;
            font-style: normal;
            width: 18px;
            height: 18px;
            background-image: url("/img/local/onepager/rettungsgasse/icons/icons-18x18.png");
            background-repeat: no-repeat;
            margin-top: -2px; /* 1 */
        }

        .btn .icon-printer { background-position: -125px -35px; }

        .btn .icon-share {
            background-position: -144px -36px;
            margin-left: 3px;
            margin-right: 3px;
        }

        .btn .icon-save { background-position: -162px -36px; }

        .btn-large [class^="icon-"],
        .btn-large [class*=" icon-"] {
            width: 24px;
            height: 24px;
            background-image: url("/img/local/onepager/rettungsgasse/icons/icons-flexWidthx24.png");
            background-repeat: no-repeat;
            margin-right: 10px;
            margin-top: -3px; /* 1 */
        }

        .btn-large .icon-pdf {
            width: 32px;
            background-position: 0 0;
        }
        .btn-large.btn-intent .icon-pdf { background-position: 0 -26px; }

        /* 16x16 sized icons */

        .btn-small [class^="icon-"],
        .btn-small [class*=" icon-"] {
            width: 16px;
            height: 16px;
            background-image: url("/img/local/onepager/rettungsgasse/icons/icons-16x16.png");
            margin-top: 0;
        }

        .btn-small .icon-camera { background-position: 0 -1px; }
        .btn-small .icon-video { background-position: -16px -1px; }
        .btn-small .icon-radialarrow { background-position: -31px 0; }
        .btn-small .icon-tools { background-position: -49px -1px; }

        .btn-small.btn-intent .icon-camera { background-position: 0 -17px; }
        .btn-small.btn-intent .icon-video { background-position: -16px -17px; }
        .btn-small.btn-intent .icon-radialarrow { background-position: -31px -16px; }
        .btn-small.btn-intent .icon-tools { background-position: -49px -17px; }



/**
 * block level button(s)
 */

.btn-block {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        box-sizing: border-box;
    width: 100%;
    display: block;
    padding-left: 0;
    padding-right: 0;
    *margin-right: -4px;
}

/**
 * block level form items
 */

textarea.block {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        box-sizing: border-box;
    width: 100%;
    display: block;
}

/**
 * append elements with eg. buttons
 * 1. gap removal
 */

.input-append {
    display: inline-block;
    font-size: 0; /* 1 */
    white-space: nowrap;
    vertical-align: middle;
    position: relative;
    margin-bottom: 10px;
}

.input-append input {
    margin-bottom: 0;
    position: relative;
    vertical-align: top;
    -webkit-border-top-right-radius: 0;
       -moz-border-top-right-radius: 0;
            border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
       -moz-border-bottom-right-radius: 0;
            border-bottom-right-radius: 0;
}

.input-append .btn:first-child {
    -webkit-border-top-left-radius: 0;
       -moz-border-top-left-radius: 0;
            border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
       -moz-border-bottom-left-radius: 0;
            border-bottom-left-radius: 0;
    margin-left: -1px;
}

/* selfmade dropdown
   ========================================================================== */
.dropdown {
    display: inline-block;
    font-size: 0;
    white-space: nowrap;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background-color: #fff;
    font-size: 14px;
    border: 1px solid #cccccc;
}

.dropdown.opened .dropdown-menu,
.js-off .dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 4px 6px;
}

.dropdown-menu a:hover { background-color: #efefef; }

/* opens to bottom: */
.opensDown .dropdown-menu {
    border-top: 0;
    border-radius: 0 0 5px 5px;
}
.opensDown .dropdown-menu li:last-child a { border-radius: 0 0 5px 5px; }

/* opens to top */
.opensUp .dropdown-menu {
    bottom: 100%;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}
.opensUp .dropdown-menu li:first-child a { border-radius: 5px 5px 0 0; }