﻿@import "/css/components/_modal.css";
@import "/css/components/_buttons.css";
@import "/css/components/_jspreadsheet.css";
@import "/css/components/_table.css";
@import "/css/components/_input.css";

@charset "UTF-8";

body {
    min-width: 960px;
}

main {
    min-height: 90vh;
}

article {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 80%;
    min-width: 900px;
    padding: 3rem;
    background: #FFF;
    border-radius: 1rem;
    overflow: hidden;
}

article::before {
    position: absolute;
    display: block;
    margin: auto;
    top: 2rem; right: 0; left: 0;
    width: 5rem;
    font-family: "Font Awesome 5 free";
    font-weight: 900;
    font-size: 3rem;
    text-align: center;
}

#dgUserSettingStaffId article::before { content: "\f508"; }
#dgPayrollDataGenerationId article::before { content: "\f022"; }
#dgSalaryDataManagementId article::before { content: "\f46d"; }
#dgInvitationDataManagementId article::before { content: "\f2b5"; }
#dgUserSettingId article::before { content: "\f007";}
#dgAdminRegisterId article::before { content: "\f2c2"; }
#dgContractId article::before { content: "\f291"; }
#dgServiceId article::before { content: "\f56c"; }

section {
    width: 100%;
}

section h1,
section h2 {
    padding: 3rem 0 1rem;
    font-size: 1rem;
    line-height: 1.2em;
}

section ol,
section ul,
section dl {
    list-style: none;
    margin: 0 auto;
    padding: 1rem;
}

section ol li {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid rgba(89,87,87,0.1);
}

section .dg-style-sel {
    position: relative;
    margin: 0;
    padding: 0;
}

.dg-style-rad-disp {
    display: none;
}

.pagination-left {
    float: left;
    padding: 0;
    margin: 0;
}

.sticky-pagination {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 4px 0;
    display: flex;
}

ul.pagination.pagination-sm {
    padding: 0;
}

#dataSummary {
    height: 60px;
}

h1 {
    font-weight: bold;
}

section#dgPayrollDataGeneration h1,
section#dgUserSetting h1,
section#dgInvitationDataManagement h1,
section#dgAdminRegister h1,
section#dgContract h1,
section#dgSalaryDataManagement h1 {
    margin-top: 15px;
}

.highlight,
.highlight-selected,
.highlight-top,
.highlight-bottom,
.highlight-left,
.highlight-right {
    box-shadow: none !important;
    outline: none !important;
}

.scrollable-div {
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
}

#salary-grid td input[type="checkbox"],
#salary-grid td {
    pointer-events: auto !important;
    user-select: auto !important;
    cursor: pointer;
}

#invitation-grid-wrapper {
    position: relative;
    overflow-x: auto;
    min-height: 50px;
}

.company-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.company-summary .company-item {
    display: flex;
    align-items: center;
}

.bg-error {
    background-color: #fde8e8 !important;
}

/*携帯に適用するスタイル*/
@media screen and (max-width: 900px) {
    body {
        min-width: 100%;
        font-size: 90%;
    }

    main {
        padding: 6.5rem 0.5rem;
    }

    article {
        width: 100%;
        min-width: unset;
        padding: 1.5rem 1rem;
        border-radius: 0.5rem;
    }

    article::before {
        font-size: 2rem!important;
        top: 1rem!important;
    }

    header nav h1 {
        width: fit-content;
    }

    header nav h1 figure img {
        width: 60px;
    }

    a {
        font-size: 15px !important;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .content-header .text-center {
        font-size: 0.9rem;
    }

    #pagination-main {
        justify-content: center;
        flex-wrap: wrap;
    }

    .jspreadsheet-grid {
        max-height: 300px;
        font-size: 0.85rem;
    }

    .modal-body {
        overflow-x: auto;
    }

    #history-grid {
        min-width: 400px;
    }

    section ol li {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    section ol li label {
        width: 100%;
        padding: 0.3rem 0;
    }

    footer p {
        font-size: 0.8rem;
        text-align: center;
    }

    #dgToTop {
        bottom: 1rem;
        right: 1rem;
    }

    .company-summary {
        flex-direction: column;
        font-size: 0.9rem;
    }

    .company-summary nav {
        margin-top: 1rem;
    }

    #dataSummary {
        height: 50px;
        margin: 10px 0px 0px 0px;
    }
}

@media (max-width: 1300px) {
    #invitation-grid {
        min-width: 1000px;
    }
}

@media (max-width: 990px) {
    .company-summary {
        flex-direction: column;
        gap: 0 !important;
    }

    .company-summary .company-item {
        width: 100%;
    }
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    #head p {
        width: 250px;
    }
    #head img {
        width: 180px;
        height: auto;
    }
    .fs-mobile-down {
        font-size: 0.75rem !important;
    }
  
    ul#pagination-main .page-link {
        font-size: 0.75rem !important;
    }
  
    #idStr_Content {
        font-size: 16px;
    }
  
    .translate-middle-x {
        top: -15px;
    }

    #history-grid {
        max-height: 300px !important;
    }
}
