html {
    padding-bottom: 4rem;
}

body
,h1
,h2
,h3
,h4
,h5
,h6
,.top-nav-links
,.side-nav {
    font-family: "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        Meiryo,
        sans-serif;
}
h5 {
    font-size: 2rem;
}
h6 {
    font-size: 1.8rem;
}

label {
    margin-bottom: 0;
    color: #999999;
}

fieldset {
    min-width: 0;
}

.button {
    border-color: #214666;
    background-color: #2c5d89;
}
.button.button-outline {
    color: #214666;
}
.button.button-clear {
    color: #214666;
}
.button-primary {
    border-color: #b99442;
    background-color: #fec74e;
    color: #1f1604;
}
.button-secondary {
    border-color: #0a0a09;
    background-color: #3a3833;
    color: #fff;
}

.horizontal-radio {
    display: inline-block;
    margin-right: 2rem;
}
.horizontal-radio input[type="radio"] {
    margin-right: 0.6rem;
    display: inline-block;
}
.horizontal-checkbox {
    display: inline-block !important;
    margin-right: 2rem !important;
}
.horizontal-checkbox input[type="checkbox"] {
    margin-right: 0.6rem !important;
    display: inline-block !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

.paginator {
    margin-top: 2rem;
}

body {
    overflow-y: scroll;
}
.container {
    display: flex;
    width: 100%;
    max-width: 180rem;
}
.side-pane {
    flex-basis: 20rem;
}
.main-pane {
    flex-grow: 1;
    margin: 4rem;
}

.side-pane .top-nav {
    margin-top: 2rem;
    padding: 0;
}
.side-pane .top-nav-title {
    width: 100%;
}
.side-pane .top-nav-title a {
    display: block;
    font-size: 3rem;
    text-align: justify;
    text-align-last: justify;
    color: #000;
    text-shadow: #fff 0 0 10px, #fff 0 0 10px, #fff 0 0 10px, #fff 0 0 10px, #fff 0 0 10px;
}
.side-pane .top-nav-title p {
    display: block;
    border-radius: 2px;
    padding: .2rem 1rem;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    color: #fff;
    background-color: #222;
    box-shadow: 0px 0px 10px #fff;
}

.side-pane .side-pane-block {
    margin-bottom: 2rem;
    border-radius: 2px;
    padding: 1rem;
    width: 100%;
    text-align: center;
    color: #333;
    background-color: #ddd;
}
.side-pane .side-pane-block h5 {
    font-weight: bold;
}
.side-pane .side-pane-block .button {
    width: 100%;
    font-size: 1.4rem;
    text-align: left;
}
.side-pane .side-pane-block .user-code {
    margin-top: -1rem;
    margin-bottom: 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-weight: bold;
}

.previous-month {
    float: left;
}
.next-month {
    float: right;
}
.previous-year {
    float: left;
}
.next-year {
    float: right;
}

[readonly="readonly"] {
    background-color: #eee !important;
}

.deduction-group label:not([for]) {
    margin-bottom: 1rem;
}
.deduction-group label[for] {
    font-weight: normal;
}

.attachment-file-container input {
    margin-bottom: 0.5rem;
}
.attachment-file-container + *:not(.attachment-file-container) {
    margin-top: 1.5rem;
}

.attachment-file {
    margin-bottom: 2rem;
}
.attachment-file .sales-reports-attachment-image {
    display: block;
    border: 1px solid #ccc;
    max-width: 200px;
    max-height: 200px;
    cursor: pointer;
}
.attachment-file button {
    margin-top: 1rem;
}

.bottom-message {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #eee;
}
.bottom-message p {
    margin-bottom: 2rem;
}

.breakline {
    white-space: pre-wrap;
}

td, th {
    vertical-align: top;
}

.message-card {
    border: 1px solid #eee;
    margin-bottom: 2rem;
    padding: 2rem;
    cursor: pointer;
}
.message-card .posted-at {
    margin-bottom: 0.6rem;
    color: #999;
}
.message-card .title {
    margin-bottom: 0.6rem;
    font-weight: bold;
}
.message-card .body {
    margin-bottom: 0.6rem;
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.check-all-button {
    display: block;
    margin-bottom: 3rem;
}

.sales-field-symbol {
    font-weight: bold;
    color: #ff3300;
}
label[for="sales-commission"] {
    margin-bottom: -0.5rem;
}
.sales-commission-expression {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff3300;
}

.content {
    position: relative;
}
.button-back {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

@media (min-width: 80.0rem) {
    .hide-on-desktop {
        display: none;
    }
}
@media (max-width: 79.9999rem) {
    .container {
        display: block;
        max-width: 100%;
    }
    .side-pane {
        max-width: 100%;
    }
    .main-pane {
        max-width: 100%;
        margin: 2rem 0 4rem 0;
    }
    
    .side-pane .top-nav-title {
        margin: 0 auto;
        margin-bottom: 1rem;
        width: 20rem;
    }

    .side-pane .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .side-pane .menu a {
        margin-bottom: 0;
        width: calc(50% - 1px - 0.5rem);
    }

    .hide-on-mobile {
        display: none;
    }

    .paging {
        margin-bottom: 9rem;
    }

    table {
        display: table;
        margin-top: -1.2rem;
        border: 0;
    }
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    table tr {
        position: relative;
        display: block;
        margin-bottom: 1rem;
        border-bottom: 1px dashed #ccc;
        padding-bottom: 1rem;
    }
    table td {
        display: block;
        border-bottom: none;
        padding: 0.5rem 1.5rem 0.5rem 0;
    }
    table td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #999999;
    }
    table td:not([data-label])::before {
        display: none !important;
    }
    table td:last-child {
        border-bottom: 0;
    }
    table .status-icon {
        position: absolute;
        top: 0;
        right: 0;
    }

    table.horizontal td {
        display: flex;
        padding-right: 0;
        line-height: 1.2;
    }
    table.horizontal td::before {
        display: inline-block;
        padding-right: 1rem;
        width: 50%;
        vertical-align: top;
    }

    .account-block {
        margin-bottom: 4rem;
        border-radius: 0.4rem;
        padding: 2rem;
        background: #ffffff;
        box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1), 0 3px 6px 0 rgba(0, 0, 0, 0.07);
    }
    .account-block .button {
        width: 100%;
    }

    form input:not[type="radio"]:not[type="checkbox"] {
        width: 100% !important;
    }
    form .input {
        display: flex;
        gap: 0.5rem;
        line-height: 3.8rem;
    }

    .content:has(.button-back) > h5:first-child {
        margin-top: 6rem;
    }
}