fieldset {
    position: relative;
    width: 500px;
    border-width: 1px;
    border-style: solid;
}

fieldset.pagination {
    border-width: 1px;
    border-style: solid;
    font-size: 17px;
}

fieldset.pagination-no-border {
    border: none;
    margin-bottom: 30px;
    padding-bottom: 1px;
    font-size: 17px;
}

fieldset.command-legend {
    border-width: 1px;
    border-style: none;
    font-size: 18px;
    font-family: sans-serif;
    padding: 1px 0px 30px;
}

legend span.fixed {
    font-weight: bold;
    left: 8px !important;
    position: relative;
    top: 11px !important;
    /* z-index: 1; */
}

fieldset.button {
    margin-bottom: 10px;
    vertical-align: middle;
    cursor: pointer;
}

fieldset.disabled {
    cursor: default
}

.button {
    font-family: sans-serif;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
}

legend.command a, legend.command span {
    text-decoration: none;
    font-size: 28px;
}

legend.command a.disabled {
    cursor: default
}

fieldset.disabled span {
    cursor: default
}

span.inline > a.button {
    margin: 0 !important;
    padding: 0 !important;
}

span.legend-arrow {
    font-size: 15px;
    position: relative;
}

div.pad {
    margin: 20px 10px -15px 30px;
}

div.pad > span.inline {
    font-size: 25px;
}

span.header span.segmented {
    position: relative;
}

fieldset.long-button {
    width: 600px !important;
}

fieldset.button, div.commands > a.button {
    width: 450px;
    display: block;
    border-width: 1px;
    border-style: solid;
    padding: 0 14px 3px 14px;
    text-decoration: none;
    font-size: 28px;
    line-height: 30px;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    margin: 10px;
}

tr.button {
    filter: none;
    font-size: medium;
}

tr.button > td {
    border-top-width: 5px;
    border-top-style: solid;
}

tr.button > td.no-border {
    border-top-width: 0 !important;
}

span.arrow {
    position: relative;
    float: right;
    margin-right: -5px;
}

legend.main {
    margin-bottom: 10px;
    display: block;
    z-index: 0;
}

legend.command {
    float: left;
    padding: 0;
}

legend span.inline {
    text-decoration: none;
    vertical-align: middle;
    margin-left: 5px;
}

legend span.header {
    position: absolute;
    left: 10px !important;
    top: -10px !important; /*margin-top: -8px;*/
    z-index: 1;
    font-weight: bold; /*top: 2px;*/
}

fieldset.pagination ul.commands, fieldset.pagination-no-border ul.commands {
    margin-top: 10px
}

span.header em {
    padding-left: 5px;
    padding-right: 5px;
    text-transform: none;
    font-style: normal;
    white-space: nowrap;
    font-size: 17px;
}

.active {
    position: relative;
    top: 1px;
    left: 1px;
}

.field {
    vertical-align: middle;
    border-width: 1px;
    border-style: dotted;
    position: relative;
    margin-left: 3px;
    margin-top: 0;
    line-height: 18px;
    font-size: 18px;
    z-index: 0;
    width: 120px;
    padding: 0;
}

label {
    position: absolute;
    z-index: 2;
}

label span.label {
    font-size: 45%;
    font-style: normal;
    line-height: 2.5;
    position: absolute;
    width: 120px;
    text-align: center;
    top: 2px;
    left: -1000em;
    cursor: text;
    z-index: 1
}

fieldset.button ul {
    float: left;
    list-style: none;
    padding: 0;
    vertical-align: middle;
}

fieldset.command-legend ul {
    display: inline-block;
    float: none;
    list-style: none;
    padding: 0;
    vertical-align: 12%;
}

fieldset.button ul li {
    float: left;
    padding-right: 5px;
    vertical-align: middle;
}

li input {
    top: 1px;
}

ul.commands {
    left: 5px !important;
    width: 480px;
    display: block;
}

ul.commands li.button {
    font-size: 14px;
    padding: 4px 8px 4px;
    margin-bottom: 5px;
    line-height: 18px;
    text-decoration: none;
}

span.segmented a.button {
    font-size: 17px;
    padding: 4px 8px 4px;
    line-height: 18px;
    border-width: 1px !important;
    border-style: solid !important;
    text-decoration: none;
}

a.button abbr {
    vertical-align: top;
    font-weight: bold;
    font-size: 18px;
}

div.footer {
    margin-top: 25px;
    position: absolute;
}

div.footer > span.segmented {
    display: block;
}

div.footer > span.segmented > a.button {
    font-family: sans-serif;
    font-weight: bold;
    float: left;
    display: block;
    border-width: 1px;
    border-style: solid;
    text-decoration: none;
    font-size: 14px;
    line-height: 24px;
}

span.segmented > a.button:first-child {
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-topleft: 5px;
}

span.segmented > a.button:last-child {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-topright: 5px;
}

.message-fragment, #alert {
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    text-shadow: none;
    background: none;
    filter: none;
    padding: 8px;
    position: relative;
    top: 5px;
    width: 480px;
    display: block;
    border-width: 2px;
    border-style: solid;
    font-weight: bold;
    font-size: small;
    margin-bottom: 15px;
    white-space: normal;
    line-height: 1.2;
    word-wrap: break-word;
}

.page-header {
    margin-top: -22px;
    border-radius: 0 0 5px 5px;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    text-shadow: none;
    background: none;
    filter: none;
    padding: 2px;
    position: relative;
    width: 480px;
    border-width: 1px;
    border-style: solid;
    font-weight: 200;
    font-size: 14px;
    margin-bottom: 20px;
    white-space: normal;
    line-height: 2.2;
    margin-left: 6px;
}

.cheMessage {
    position: relative;
    margin: 1em 0 3em;
    border-width: 3px;
    border-style: solid;
    width: 480px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* Right angled speech bubble -------------------- */
.cheMessage:before {
    border-style: solid;
    border-width: 20px 16px 0 0;
    bottom: -20px;
    content: "";
    display: block;
    left: 47px;
    position: absolute;
    width: 1px;
}

/* creates the smaller  triangle */
.cheMessage:after {
    border-style: solid;
    border-width: 13px 10px 0 0;
    bottom: -13px;
    content: "";
    display: block;
    left: 50px;
    position: absolute;
    width: 0;
}

.close-button, .exclamation-button {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-bottom: 12px;
    height: 0;
    width: 24px;
    padding: 24px 0 0 0;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    border-radius: 12px 12px 12px 12px;
    -moz-border-radius: 12px 12px 12px 12px;
    -webkit-border-radius: 12px 12px 12px 12px;
}

.exclamation-button {
    float: left;
    top: -6px;
    margin-right: 10px;
    cursor: auto;
}

.close-button {
    float: right;
    margin: -4px -6px 12px 10px;
}

.close-button:before, .exclamation-button:before {
    display: inline-block;
    text-align: center;
    width: 24px;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 24px;
    font-family: Verdana, Geneva, Arial, Century, sans-serif;
}

.close-button:before {
    content: "\D7";
    top: -2px;
}

.exclamation-button:before {
    content: "\0021";
    top: -1px;
}

.close-button-area {
    width: 7%;
    white-space: normal;
    float: right;
}

#alert {
    font-weight: bold;
    font-size: small;
    margin-top: 0px;
    margin-bottom: 25px;
    display: none;
}

ul.commands a {
    font-size: 18px;
    text-decoration: none;
}

ul.commands li a span {
    padding: 20px;
    width: 100%
}

ul.commands li a span.attr-left, ul.commands li a span.attr-right, ul.commands li a span.attr-op {
    padding: 0
}
