/* Miligram overrides */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    /* font-size: 1.4em */
}

h4.heading {
    display: none;
}

/* .top-nav-links,
.side-nav,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
} */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    color: #363637;
}

a {
    color: #2f85ae;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

a:hover,
a:focus,
a:active {
    color: #2a6496;
    -webkit-transition: all 0.2s easeout;
    transition: all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #606c76;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color: #2f85ae;
}

div.side-nav {
    background: #0c0c14;
    height: 100%;
}

div.side-nav a {
    display: inline-block;
    width: 100%;
    font-size: 0.85em;
    line-height: 1.5;
    padding: 0.375rem 0.5rem;
    text-decoration: none;
    border: 1px;
    color: #fff;
}

div.side-nav a:hover {
    color: #fff;
    background: #204ca4;
    text-decoration: none;
}

div.side-nav div.select-hospital select {
    margin: 0.5rem;
    width: calc(100% - 1rem);
    background: #fff;
}

/* table */
table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.85em;
    /* color: #212529; */
}

td:first-child,
th:first-child {
    padding-left: 1.5rem;
}

td:last-child,
th:last-child {
    padding-right: 1.5rem;
}

table thead tr {
    background-color: #6c757d;
    border-color: #6c757d;
}

table thead tr th {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

table thead tr th {
    color: #fff;
}

table thead tr th a {
    color: #fff;
}

table thead tr th a:hover {
    color: #fff;
}

td.actions a {
    color: #fff;
    font-weight: normal;
    padding: 0.37rem 0.75rem;
    background-color: #6c757d;
    border-color: #6c757d;
    display: inline-block;
    font-size: 1.35rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
}

td.actions a:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: #f5f7fa;
}

div.container {
    max-width: initial;
    padding: 0;

}

div.container>div.row {
    flex-wrap: initial;
    width: 100%;
}

aside.column {
    min-width: 195px;
}

aside+div {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    padding: 1rem 0 !important;
}

.content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}

.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}

th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* max-width: 112rem; */
    padding: 1rem 2rem;
    /* margin: 0 auto 2rem; */
    background: #204ca4;
}

.top-nav-title a {
    /* font-size: 2.4rem; */
    color: #fff;
}

.top-nav-title span {
    /* color: #404041; */
    color: #fff;
}

.top-nav-links {
    color: #fff;
}

.top-nav-links a {
    margin: 0 0.5rem;
}

.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
    color: #fff;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

#footer {
    padding: 1rem;
    text-align: center;
    background: #204ca4;
    color: #fff;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}

.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.message.hidden {
    display: none;
}

.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}

.message.warning {
    background: #fffabc;
    color: #8d7b00;
    border-color: #d3b800;
}

.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
label {
    margin-bottom: 0;
}

input[type=radio],
input[type=checkbox] {
    margin: 0 0.75rem;
}

.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}

.input.radio input,
.input.checkbox input {
    /* margin: 0; */
}

.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}

.input.radio label>input,
.input.checkbox label>input {
    margin-right: 1.0rem;
}

.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

/* Paginator */
.paginator {
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.pagination li {
    margin: 0 0.5rem;
}

.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}

.asc:after {
    content: " \2193";
}

.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }

    .side-nav {
        margin-bottom: 1rem;
    }

    .heading {
        margin-bottom: 1rem;
    }

    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }

    .asc:after {
        content: " \2192";
    }

    .desc:after {
        content: " \2190";
    }
}

form .required label::after {
    color: #e32;
    content: '*';
    display: inline;
}

form .error {
    background: #FFDACC;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    font-weight: normal;
  }

.error-message {
    clear: both;
}

/** select */
select {
    padding-right: 0;
}

/** time select */
.time_select {
    min-width: 60px;
    max-width: 25%;
}


/** 画面名関係 */
legend{
    color: #363637;
    font-size: 2.8rem;
}

h2{
    font-size: 2.8rem;
}

td.actions {
    white-space: nowrap;
}

/** カレンダー用 */
.l_button {
    float: left;
}

.r_button {
    float: right;
}

.ui-dialog-buttonset{
    width: 100%;
}

.l_button span.ui-button-text,
.r_button span.ui-button-text{
    padding: 0.4em 0.4em;
}