/* Bootstrap 3.4.1 Core CSS - Simplified for Travel Expense Form */

* {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Container and Grid System */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    margin: 0 -15px;
}

.row::before,
.row::after {
    content: " ";
    display: table;
}

.row::after {
    clear: both;
}

.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12 {
    float: left;
    padding: 0 15px;
    position: relative;
    min-height: 1px;
}

.col-md-1 { width: 8.33333333%; }
.col-md-2 { width: 16.66666667%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.33333333%; }
.col-md-5 { width: 41.66666667%; }
.col-md-6 { width: 50%; }
.col-md-7 { width: 58.33333333%; }
.col-md-8 { width: 66.66666667%; }
.col-md-9 { width: 75%; }
.col-md-10 { width: 83.33333333%; }
.col-md-11 { width: 91.66666667%; }
.col-md-12 { width: 100%; }

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(102, 175, 233, 0.6);
}

.form-group {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    user-select: none;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed; /* 固定レイアウト */
}

.table {
    width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    table-layout: fixed; /* 固定レイアウト */
}

.table th,
.table td {
    padding: 8px;
    vertical-align: top;
    border-top: 1px solid #ddd;
    line-height: 1.42857143;
    overflow: hidden; /* テキストがはみ出ないように */
    white-space: nowrap; /* 改行を防ぐ */
}

/* テーブルの固定幅レイアウト用 */
.layoutTableListHeader table,
.layoutTableListBody table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.layoutTableListHeader table td,
.layoutTableListBody table td {
    padding: 4px;
    border: 1px solid #ddd;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 各列の幅を強制的に適用 */
.layoutColumnBody input,
.layoutColumnBody select,
.layoutColumnBody button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.layoutColumnBody.layoutColumnButton button,
.layoutColumnHeader button {
    padding: 2px 4px;
    font-size: 10px;
    white-space: nowrap;
}

/* 隠しテキスト列の完全非表示 */
.layoutColumnHiddenText {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    visibility: hidden !important;
}

.table th {
    font-weight: bold;
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
        width: 100%;
        float: none;
    }
}