br {
    border: none !important;
}

html,body {
    min-height: 100vh;
    background: white;
}
body {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
}
#container {
    flex: 1;
    -ms-flex: 1;
    -webkit-flex: 1;
    min-width: 1000px;
}

#header {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    margin: 0;
    padding: 0;
}
#header h1 {
    background: white;
    padding: 1em 1.5em 0;
}
#header img {
    vertical-align: middle;
}
#header h1 a {
    background: white;
    color: black;
    font-size: 2rem;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-feature-settings: "palt";
}
#header h1 a:hover {
    background: none;
    color: black;
}
#info {
    flex: 1;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    align-items: center;
    -webkit-align-items: center;
}
#info li a {
    color: black;
    font-weight: normal;
}

nav {
    position: relative;
    z-index: 9999;
}

nav > ul {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    height: 3em;
    margin: 0;
    padding: 0 3em;
    list-style-type: none;

   /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#157dd7+0,005dad+100 */
    background: rgb(21,125,215); /* Old browsers */
    background: -moz-linear-gradient(top, rgba(21,125,215,1) 0%, rgba(0,93,173,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(21,125,215,1) 0%,rgba(0,93,173,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(21,125,215,1) 0%,rgba(0,93,173,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#157dd7', endColorstr='#005dad',GradientType=0 ); /* IE6-9 */
}
nav > ul > li {
    position: relative;
    margin: 0;
}
nav > ul > li > a {
    height: 3em;
    padding: 0 1.5em;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    text-decoration: none;

    -webkit-transform: rotate(0.05deg);
    -moz-transform: rotate(0.05deg);
    -ms-transform: rotate(0.05deg);
    -o-transform: rotate(0.05deg);
    transform: rotate(0.05deg);
}
nav > ul > li a:hover {
    color: white;
    background: rgba(255,255,255,.2);
}

nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.5);
    white-space: nowrap;
    list-style: none;
}
nav > ul > li:hover ul {
    display: block;
}
nav ul ul li {
    margin: 0;
    padding: 0;
}
nav ul ul a {
    display: block;
    margin: 0;
    padding: .75em 1.5em;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

#footer {
    background: rgba(0,93,173,1);
}
#copyright {
    margin: 0;
    padding-left: 1em;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance:textfield;
}
body {
    font-family: 'Lucida Grande','Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3',Meiryo, メイリオ, sans-serif;
}

#content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: inherit;
}
#content .message {
    order: -2;
    color: red;
    background: none;
    border: none;
    text-shadow: none;
    font-weight: normal;
    font-size: 1rem;
    padding: 1em 0 0;
    margin-bottom: 0;
}
#content .message.success {
    color: blue;
}
#content .view
, #content .index
, #content .form
{
    float: none;
    order: -1;
    flex-order: -1;
    -ms-flex-order: -1;
    width: auto;
    border: none;
    padding-left: 0;
}

h2 {
    vertical-align: middle;
    margin-bottom: 1rem;
    border-bottom: solid 2px #AACF52;
    width: 100%;
    font-size: 1.1rem;
    font-weight: normal;
    color: #000;
}
h2:before {
    content: "\25A0";
    display: inline-block;
    height: 100%;
    width: 1.5em;
    vertical-align: middle;
    color: #AACF52;
    font-size: .5em;
}
#content > .actions {
    float: none;
    order: 100;
    flex-order: 100;
    -ms-flex-order: 100;
    width: auto;
}
#content div.actions {
    padding-left: 0;
}

h3 {
    display: none;
}
#content .actions ul {
    margin-bottom: 0;
    padding: 0;
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
}
#content .actions .submit {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}
#content .submit [type=submit]
, #content .actions button
, #content .actions a
{
    min-width: 100px;
    padding: 3px 1em;
    box-sizing: border-box;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    background: #777;
    cursor: default;
    letter-spacing: 1px;
    box-shadow: none;
    text-shadow: none;
    font-size: 12px;
    text-decoration: none;
    font-weight: normal;
    text-align: center;
    color: #fff;
}
#content .actions button:last-child
, #content .actions a:last-child
{
    margin-right: 0;
}
#content .submit [type=submit]:hover
, #content .actions button:hover
, #content .actions a:hover
{
    background: #999;
}
#content .submit [type=submit][disabled]
, #content .actions button[disabled]
, #content .actions a[disabled]
{
    background: #cacaca;
}

#content table {
    border-style: solid;
    border-color: #777;
    border-width: 1px 0 0 1px;
    width: auto;
    max-width: 90%;
}
#content th
, #content td
{
    border-style: solid;
    border-color: #777;
    border-width: 0 1px 1px 0;
}
#content th {
    background: #999 !important;
    margin: 0;
    padding-left: 1em;
    padding-right: 1em;
}
#content th
, #content th a
{
    text-align: center;
    font-size: .8rem;
    font-weight: normal;
    color: #fff;
}
#content td.actions {
    padding-right: .25em;
    padding-left: .25em;
    text-align: left;
}
#content td.actions a {
    min-width: auto;
    margin: 0 .05em;
}

#content select {
    padding: 1%;
}

.user nav ul {
     /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#d79315+0,ad7000+100 */
    background: rgb(215,147,21); /* Old browsers */
    background: -moz-linear-gradient(top, rgba(215,147,21,1) 0%, rgba(173,112,0,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(215,147,21,1) 0%,rgba(173,112,0,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(215,147,21,1) 0%,rgba(173,112,0,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d79315', endColorstr='#ad7000',GradientType=0 ); /* IE6-9 */
}
.user #footer {
    background: rgba(173,112,0,1);
}

#container caption {
    color: black;
}

@media (-ms-high-contrast: none) {
    body {
        display: block;
    }
}
