/* コントロールパネル全体のレイアウト */
@media only screen and (max-width: 640px) {
    #search{
        font-size: 14px;
    }
}

.controls-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 10px;
}

.controls-panel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0px;
    align-items: first baseline;
}

/* 左側の件数表示 */
.count-display {
    flex: 0 0 25%;
    font-size: 16px;
    float:left;
    text-align:left;
}

.total-count {
    font-size: 20px;
    font-weight: bold;
}

.current-count {
    font-weight: bold;
}
@media only screen and (max-width: 640px) {
    .count-display{
        font-size: 14px;
    }
    .total-count{
        font-size: 18px;
    }
}

/* 中央のページネーション */
.pagination {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    /* ページネーションを中央に配置する */
    justify-content: center;
    float:left;
}

.pagination button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 8px;
    font-size: inherit;
    color: #333;
}

.pagination button.active {
    padding: 0.25em 0.35em;
    background-color: #0000ff;
    color: white;
}

.pagination button:hover {
    text-decoration: underline;
}

.pagination button.active:hover {
    text-decoration: none;
}

.pagination-separator {
    margin: 0 5px;
    color: #333;
}

.pagination bottom-pagination {
    display: flex;
    align-items: center;
    /* ページネーションを中央に配置する */
    justify-content: center;
}
@media only screen and (max-width: 640px){
    .pagination-separator {
        margin: 0;
    }
}

/* 右側の表示件数選択 */
.page-size-selector {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.page-size-selector span {
    margin-right: 10px;
    font-size: 16px;
}

.page-size-selector button {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    margin-right: 5px;
    color: #0000ff;
}

.page-size-selector button.active {
    color: black;
    font-weight: bold;
}

.page-size-selector button:hover {
    text-decoration: underline;
}

.page-size-selector button.active:hover {
    text-decoration: none;
}

.locField {
    text-align: center;
}
@media only screen and (max-width: 640px) {
    .page-size-selector span{
        font-size: 14px;
    }
    .page-size-selector button {
        font-size: 14px;
        margin-right: 0;
    }
}

/* 初期非表示用のクラス */
.hidden {
    visibility: hidden;
}

th {
    border: 1px solid #ccc;
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
    background-color: #f8f8f8;
    padding: 8px;
    border: 1px solid #e0e0e0;
    line-height: 1.5;
}

td {
    border: 1px solid #ccc;
    text-align: justify;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
    padding: 10px;
    border: 1px solid #e0e0e0;
    line-height: 1.5;
}

/* データテーブルのカラム幅 */
/* ｼﾘｰｽﾞ */
th:nth-child(1) {
    width: 10%;
}
/* 機種 */
th:nth-child(2) {
    width: 8%;
}
/* 製品形式 */
th:nth-child(3) {
    width: 11%;
}
/* 品名 */
th:nth-child(4) {
    width: 20%;
}
/* 仕様 */
th:nth-child(5) {
    width: 26.5%;
}
/* 生産中止年月 */
th:nth-child(6) {
    width: 9.5%;
}
/* 代替形式 */
th:nth-child(7) {
    width: 15%;
}

@media only screen and (max-width: 640px){
    table{
        word-break: break-all;
    }
}

div,
button {
    font-family: 'Meiryo', 'Arial', 'Helvetica', 'Tahoma', sans-serif;
}