*{margin:0}
html, body { height: 100%; }
html {
    width: 100vw;
}
body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    overflow-x: hidden;
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
}

h1{
    margin: 0;
}

div, span, label {
    user-select: auto !important;
    touch-action: auto !important;
}

ul {
    list-style-type: none;
}

input {
    border: solid 1px lightgray;
    border-radius: 3px;
    height: 23px;
}

select {
    border: solid 1px lightgray;
    border-radius: 3px;
    height: 27px;
}

input:focus, select:focus , textarea:focus {
    outline: none;
    box-shadow: 0 0 3px 0 #ddd;
}

select {
    width: 120px;
}

button {
    cursor: pointer;
    border: solid 1px white;
    border-bottom: ridge 1px white;
    border-radius: 4px;
    background-color: white;
}

button.black {
    background-color: #808080;
    color: white;
    border: unset;
    cursor: pointer;
}

button.pink {
    background-color: #F0908D;
    color: white;
    border-radius: 5px !important;
    cursor: pointer;
    height: 40px;
}

button.gray {
    background-color:lightgray;
    color: white;
    border: unset;
    cursor: default;
}

button:hover {
    /*background-color: #EEEFF0;*/
}

button:focus {
    outline:0;
}

button.disabled {
    background-color: lightgray !important;
    border: none !important;
    cursor: default;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    border: solid 1px lightgray;
}

table th {
    color: #F0908D;
}

.main {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/*---------ヘッダー--------*/
.header {
    padding-left: 5px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    height: 40px;
    display: grid;
    grid-template-columns: 7% 23% 40% 30%;
    border: solid 1px lightgray;
}

.header .logo {
    max-width: 40px;
    max-height: 40px;
    margin-left: 10px;
    cursor: pointer;
}

.header .year-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header .year-info label {
    margin-right: 10px;
    font-size: 20px;
}

.header .page-caption {
    display: grid;
    grid-template-columns: 10% 65% 25%;
    align-items: center;
    justify-content: center;
    color: #F0908D;
    font-size: 24px;
}

.header .page-caption button.urgent {
    background-color: #D2302F;
    color: white;
    width: 80px;
    height: 30px;
    margin: auto;
}

.header .staff-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header .staff-info label {
    margin-right: 20px;
}

/*--------/ヘッダー--------*/

/*--------メニューー--------*/
.menu {
    height: calc(100vh - 51px);
    position: absolute;
    left: 0;
    top: 47px;
    display: flex;
    flex-direction: column;
    border: solid 1px lightgray;
    background-color: #F0908D;
    z-index: 100;
}

.menu .menu-icon {
    cursor: pointer;
    font-size: 34px;
    color: white;
    text-align: right;
}

.menu .menu-content {
    width: 30px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

.menu .menu-content .menu-block {
    display: flex;
    flex-direction: row;
}

.menu .menu-content .menu-block img {
    /*
    max-width: 50px;
    max-height: 38px;
    */
    margin: 10px;
}

.menu .menu-content .menu-block .menu-top {
}

.menu .menu-content .menu-block:not(:last-of-type) {
    margin-bottom: 20px;
}

.menu .menu-content .menu-block .material-icons {
    font-size: 48px;
    margin-left: 5px;
    margin-right: 5px;
}

.menu .menu-content .menu-block ul {
    padding-left: 0px;
    display: flex;
    flex-direction: column;
}

.menu .menu-content .menu-block ul li {
    margin-top: 5px;
    margin-bottom: 5px;
}

.menu .menu-content .menu-block ul li:first-of-type {
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
}

.menu .menu-content .menu-block ul li:not(:first-of-type) {
    padding:5px;
    padding-left: 10px;
    cursor: pointer;
    width: 120px;
    color: white;
    font-size: 14px;
}

.menu .menu-content .menu-block ul li:not(:first-of-type):hover {
    background-color: lightsalmon;
}


/*--------/メニュー--------*/

/*---------コンテンツ部分--------*/
.main .main-block {
    position: absolute;
    width: calc(100vw - 35px);
    height: 100%;
    left: 35px;
    top: 47px;
    /*padding-left: 10px;*/
    max-height: calc(100% - 49px);
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.main .main-block .search-block {
    width: 220px;
    border-right: solid 1px lightgray;
}

.main .main-block .search-block .search-condition {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.main .main-block .search-block .search-condition input {
    width: 97%;
}

.main .main-block .search-block .search-condition button {
    width: 60px;
    margin-top: 10px;
    margin-left: 10px;
    border-radius: 5px;
}

.main-block .search-block .search-list {
    height: calc(100% - 40px);
    background-color: #FCDEDD;
    padding-left: 5px;
}

.main-block .search-block .search-list .search-event {
    height: 40px;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
}


.main-block .search-block .search-list .search-result {
    height: 100%;
    overflow-y: auto;
    padding-top: 10px;
}

.main-block .search-block .search-list .search-event label {
    margin-right: 10px;
    white-space: nowrap;
}

.main-block .search-block .search-list .search-event button {
    width: 60px;
    margin-right: 10px;
    border-radius: 5px;
}

.main-block .content-block {
    padding: 20px;
    position: relative;
    width: 100%;
}

.content-block .row-block {
    display: grid;
    grid-template-columns: 550px auto;
}

.main-block .content-block input[type="text"] {
    width: 200px;
}

.main-block .content-block .button-block {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 60px;
    width: 100%;
    background-color: #E9F4FE;
    text-align: center;
    z-index: 50;
}

.main-block .content-block .button-block button {
    margin:10px;
    margin-left: 20px;
    margin-right: 20px;
    width: 120px;
    height: 35px;
    border-radius: 5px;
    background-color: #F0908D;
}

.main-block .content-block .button-block .button-div {
    position: relative;
}

.main-block .content-block .button-block .button-div .message {
    position: absolute;
    top: 15px;
    left: 5px;
    font-size: 16px;
    color: red;
}

.main-block .content-block .button-block .button-div .save-finish {
    color: blue;
}

.main-block .search-block .search-list .filter-block {
    position: absolute;
    display: none;
    min-width: 180px;
    border: solid 1px #303030;
    padding: 10px;
    background-color: white;
    z-index: 200;
}

.filter-block .filter-content {
    display: flex;
    flex-direction: column;
}

.filter-block .filter-content .filter-title {
    font-size: 16px;
    font-weight: bold;
    width: 120px;
}

.filter-block .filter-content label {
    display: inline-block;
    width: 60px;
}

.filter-block .filter-content .filter-item {
    display: grid;
    grid-auto-flow: column;
    margin-bottom: 10px;
}

.filter-block .filter-content .filter-item label {
    padding-left: 20px;
    padding-top: 5px;
}

.filter-block .filter-content span.material-icons {
    width: 40px;
    height: 23px;
    border-radius: 10px;
    background-color: #E0E0E0;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
}

.filter-block .filter-content span.select {
    background-color: black;
}

.new-one {
    background-color: #FFAE00;
    color: white;
    width: 40px;
    height: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-right: 10px;
    position: absolute;
    z-index: 8500;
}

/*---------/コンテンツ部分--------*/

/*--------------dialog--------------------*/
.dialog,.dialog-dep,.dialog-info{
    display: grid;
    grid-template-rows: 50px auto 2px 40px;
    height: 105%;
    margin: -15px;
}

.dialog-title{
    height: 40px !important;
    width: 100% !important;
    border: 1px solid #e78f08;
    /*background: #f6a828 url(../images/dialog_title_bg.png) 50% 50% repeat-x; */
    background-color: #F0908D;
    border-radius: 5px;
    display: flex;
}

.dialog-title > span{
    margin: 12px;
    margin-left: 5px;
    font-weight: bold;
    color: #444;
}

.dialog-content{
    display: grid;
    width: calc(100% - 10px);
    grid-template-columns: 40px auto;
    margin-left: 10px;
}
.dialog-content span {
    padding-top: 10px;
}

.dialog button {
    width: 90px;
    height: 30px;
    border-radius: 10px;
    margin-left: 20px;
}
/*--------------/dialog--------------------*/

/*--------------Tab-----------------------*/
.mat-tab-labels {
    height: 40px;
}
.mat-tab-label {
    width: 80px !important;
    padding: 5px;
    color: black;
    border: solid 1px #A9A9A9;
}

.mat-tab-label.mat-tab-label-active {
    padding: 5px;
    background-color: #4A4A4A !important;
    color: white;
}
.mat-tab-body {
    padding-top: 20px;
}
/*------------/Tab----------------------*/

/*---------共通-----------*/
.header-label {
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
    color: #F0908D;
}

.textbox-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.textbox-block label {
    display: inline-block;
    margin-bottom: 3px;
    height: 18px;
}

.horizol-block {
    display: flex;
}

.horizol-block input[type="text"] {
    margin-right: 10px;
}

.horizol-block button {
    margin-bottom: 10px;
    margin-left: 10px;
    height: 30px;
    border-radius: 10px;
}

.required {
    width: 40px;
    margin-left: 10px;
    background-color: #D2302F;
    color: white;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
}

.number {
    text-align: right;
    padding-right: 5px;
}

.errortitle {
    color: #E57373;
}

.errorLabel {
    color: #E57373;
}

.red-border {
    border-color: red;
}

.selected {
    border: solid 2px green !important;
}

.disabled {
  background-color: #D3D3D3;
}
.w415 {
    width: 415px !important;
}

.w150 {
    width: 150px !important;
}

.w100 {
    width: 100px !important;
}

.w105 {
    width: 105px !important;
}

.w90 {
    width: 90px !important;
}

.w95 {
    width: 95px !important;
}

.w80 {
    width: 80px !important;
}

.w80yellow {
    width: 80px !important;
    background-color: #FFF59D !important;
}

.w190 {
    width: 190px !important;
}

.w200 {
    width: 200px !important;
}

.w210 {
    width: 207px !important;
}

.w250 {
    width: 250px !important;
}

.w300 {
    width: 300px !important;
}

.w400 {
    width: 400px !important;
}

.w500 {
    width: 500px !important;
}

.w600 {
    width: 600px !important;
}

.w800 {
    width: 800px !important;
}

.w900 {
    width: 900px !important;
}

.w80per {
    width: 80% !important;
}

.divider {
    height: 1px;
    background-color: lightgray;
    margin-left: -10px;
}

.icon-button {
    font-size: 28px;
    cursor: pointer;
}

::ng-deep.mat-radio-label {
    display: flex !important;
    margin-right: 20px !important;
}

.mat-radio-label {
    display: flex !important;
    margin-right: 20px !important;
}

div.ui-datepicker,
div.ui-monthpicker {
    z-index: 9000 !important;
}

div.ui-datepicker {
    width: 300px !important;
}

div.ui-datepicker td span, .ui-datepicker td a {
    padding: 1.2em;
}

@media screen and (max-width: 1200px) {
    body {
        overflow-x: hidden;
    }
    .header {
        grid-template-columns: 7% 28% 35% 30%;
    }
    .menu {
        height: calc(100vh - 80px);
    }
    /* .menu {
        height: calc(100vh - 80px);
    } */
    .content-block .row-block {
        grid-template-columns: 400px auto;
    }

    .main-block .content-block input[type="text"] {
        width: 160px !important;
    }
    ::ng-deep.w600{
        width: 500px !important;
    }

    .mat-tab-label {
        min-width: 140px !important;
    }

    .textbox-block label {
        margin-bottom: 5px;
    }
}


@media screen and (max-width: 1000px) {
    body {
        overflow: hidden;
    }
    .header {
        grid-template-columns: 7% 23% 30% 40%;
    }
    .header .year-info label {
        font-size: 14px;
    }
    .header .page-caption {
        font-size: 18px;
    }
    .header .staff-info label {
        margin-right: 20px;
    }
}
