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

.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:#363637;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}
.standsTable th a,
.standsTable th a:hover,
.standsTable th a:focus,
.standsTable th a:active{
    color:#fff !important;
    text-decoration:none;
}
.st_ttl{
    color: #363637;
    font-weight: 500;
}
/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: #f5f7fa;
}
.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;
}
.actions a:first-child {
    padding-left: 0;
}
th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 2rem;
    margin: 0 auto 2rem;
}
.top-nav-title img{
  width:160px;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #d33c43;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

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

/* 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 */
.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";
    }
    .standsTable th{
        width:110px;
        min-width:110px;
        padding:10px 8px;
    }

    .standsTable td{
        padding:10px 8px;
    }
}


.standsTableWrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.standsTable{
    width:100%;
    min-width:1400px;
    border-collapse:collapse;
    background:#fff;
    font-size:14px;
}

.standsTable th{
    background:#606c76;
    color:#fff;
    padding:14px 12px;
    text-align:left;
    white-space:nowrap;
    position:sticky;
    top:0;
    z-index:1;
}

.standsTable td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:top;
    line-height:1.6;
}

.standsTable tr:nth-child(even){
    background:#f8fafc;
}

.standsTable tr:hover{
    background:#eef7fc;
}

/* 住所幅固定 */
.addressCol{
    min-width:260px;
    max-width:260px;
    word-break:break-word;
}

/* メール列 */
.mailCol{
    min-width:220px;
}

/* ステータス */
.statusBadge{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
    color:#fff;
}

.statusBadge.active{
    background:#16a34a;
}

.statusBadge.inactive{
    background:#dc2626;
}

/* お試しタグ */
.trialTag{
    display:inline-block;
    padding:4px 10px;
    background:#f59e0b;
    color:#fff;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

/* Actions */
.actions{
    white-space:nowrap;
}

.actionBtn{
    display:inline-block;
    padding:7px 12px;
    margin:2px;
    border-radius:6px;
    text-decoration:none;
    font-size:13px;
    font-weight:bold;
    transition:background-color .2s, filter .2s;
}

.viewBtn{
    background:#dbeafe;
    color:#1d4ed8;
}

.editBtn{
    background:#dcfce7;
    color:#15803d;
}

.deleteBtn{
    background:#fee2e2;
    color:#dc2626;
}

.actionBtn:hover{
    filter:brightness(0.92);
}

.actions .actionBtn,
.actions .actionBtn:hover,
.actions .actionBtn:focus,
.actions .actionBtn:active{
    text-decoration:none !important;
    opacity:1 !important;
}
.viewBtn,
.viewBtn:hover,
.viewBtn:focus,
.viewBtn:active{
    background:#dbeafe !important;
    color:#1d4ed8 !important;
}

.editBtn,
.editBtn:hover,
.editBtn:focus,
.editBtn:active{
    background:#dcfce7 !important;
    color:#15803d !important;
}

.deleteBtn,
.deleteBtn:hover,
.deleteBtn:focus,
.deleteBtn:active{
    background:#fee2e2 !important;
    color:#dc2626 !important;
}

/* SP */
@media screen and (max-width:768px){

    .standsTable{
        font-size:12px;
    }

    .standsTable th,
    .standsTable td{
        padding:10px 8px;
    }

    .addressCol{
        min-width:200px;
        max-width:200px;
    }

}