/** Base Styles **/

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
}

ul {
    list-style: none;
}

.ul-note {
    list-style: inside;
}

/* a {
    text-decoration: none;
} */

:root {
    --form-control-label-width: 170px;
}

/* ローディング */
#is-loading {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: #f8f9fa;
    text-align: center;
    z-index: 8;
}

#inner_loading {
    position: absolute;
    top: 50%;
    left: 50%;
}

#loading {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* overwrite .card-header */
.card-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* portalのリンク */
/* .card .card-body a {
    transition: color .3s;
} */

/* .card .card-body a:hover {
    color: #343a40;
    font-weight: bold;
} */
/* a:hover, a:focus { */
a:hover {
    text-decoration: underline;
}

/* override material-dashboard.css */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a:active {
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: #dddddd;
    color: black;
}

.form-group>label {
    padding-top: 1rem;
    width: var(--form-control-label-width);
    max-width: var(--form-control-label-width);
    float: left;
    margin-bottom: 0px;
}

.label_for_input_file {
    width: var(--form-control-label-width);
    max-width: var(--form-control-label-width);
}

.form-group>.form-control {
    width: calc(100% - var(--form-control-label-width) - 10px);
}

.form-control::placeholder {
    font-size: 0.7rem;
}

/* 2024.4.17 del: unused */
/* .Alabel_required::after {
    padding: 0px 6px 0px 6px;
    border-radius: 4px;
    font-size: 1em;
    color: red;
    content: "*";
} */

.label_required::after {
    /* margin-left: 1.0em; */
    margin-left: 0.5rem;
    padding: 0px 6px 0px 6px;
    border-radius: 4px;
    /* font-size: 0.6em; */
    font-size: 75%;
    color: white;
    background-color: #C44;
    content: "必須";
}

.label_deisabled::after {
    /* margin-left: 1.0em; */
    margin-left: 0.5rem;
    padding: 0px 6px 0px 6px;
    border-radius: 4px;
    /* font-size: 0.6em; */
    font-size: 75%;
    color: white;
    background-color: #888;
    content: "変更不可";
}

/* redefine bootstrap */
.table-sm thead tr th,
.table-sm tbody tr td {
    padding: 0.3rem;
}

/* redefine bootstrap */
.bg-warn {
    background-color: #ffc107 !important;
}

/* redefine bootstrap */
b,
strong {
    font-weight: bold;
}

.font-weight-bold {
    font-weight: bold !important;
}

.font-sm,
.thead-sm tr th,
.tbody-sm tr td {
    /* 14px */
    font-size: 0.875rem !important;
}

/* override datatables.js css (for dark thead) */
/* can sort icon: fa-sort, gray */
table.dataTable thead .sorting:after {
    content: '\f0dc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    padding-left: 1.00em;
    color: gray;
}

/* sorted asc icon */
table.dataTable thead .sorting_asc:after {
    content: '\f0de';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    padding-left: 1.00em;
    color: yellow;
}

/* sorted desc icon */
table.dataTable thead .sorting_desc:after {
    content: '\f0dd';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    padding-left: 1.00em;
    color: yellow;
}

/* display button for smartphone */
@media (min-width: 576px) {
    .btn-sm-inline-block {
        display: inline-block;
        width: auto;
    }
}

@media (min-width: 576px) {
    .w-sm-25 {
        width: 25% !important;
    }

    .w-sm-50 {
        width: 50% !important;
    }

    .w-sm-75 {
        width: 75% !important;
    }

    .w-sm-100 {
        width: 100% !important;
    }
}

.bg-disabled {
    background-color: #e9ecef !important;
}

.block-heading {
    /* primary color */
    border-left: 7px solid #123364;
    /* background: #dfe4ea !important; */
}

/* for table color */
.bg-light-blue {
    background-color: #e5f1ff
}

.bg-light-red {
    background-color: #fae4e7
}

/* for icons */
.color-blue {
    color: blue;
}

.color-green {
    color: green;
}

.color-teal {
    color: teal;
}

.color-yellow {
    /* color: yellow; */
    color: #f3da35;
}

.color-red {
    color: red;
}

.color-gray {
    color: #888;
}
