﻿@font-face {
    font-family: 'NotoSans-Regular';
    src: url('../assets/fonts/NotoSansKR-Regular.woff2') format('woff2');
    src: url('../assets/fonts/NotoSansKR-Regular.woff') format('woff');
}

.clear{
    clear: both;
}
a.nobleui-logo {
    width: 150px;
    height: 46px;
    background-size: cover;
}
[data-bs-theme=light] a.nobleui-logo, [data-bs-theme=light] a.sidebar-brand {
    background-image: url(../assets/images/logo-black.png);
}
[data-bs-theme=dark] a.nobleui-logo, [data-bs-theme=dark] a.sidebar-brand {
    background-image: url(../assets/images/logo-light.png);
}
.img-cover {
    background-image: url(../assets/images/bg.png);
    background-size: cover;
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}
a.sidebar-brand {
    width: 120px;
    height: 33px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.bold {
    font-weight:600;
}
.text-gray {
    color: var(--bs-secondary-color);
}
.bg-outline-primary {
    border: 1px solid #6571ff;
    background: #6571ffab;
}
.bg-outline-danger {
    border: 1px solid red;
    background: #ff00005e;
}


.table thead {
    position: sticky;
    top: 0;
    background-color: #fff; /* 필요에 따라 배경색을 설정하세요 */
    z-index: 1;
}

.max-90 {
    max-width: 90%;
}

.max-70 {
    max-width: 70%;
}

.max-50 {
    max-width: 50%;
}

.max-33 {
    max-width: 33.33%;
}

.max-30 {
    max-width: 30%;
}

.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.float-none {
    float: none !important;
}

/*#region 대시보드 */
main .card-body .table-responsive {
    position: relative;
    height: 174px;
    overflow-y: auto;
}
.card-body .legend {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.card-body .legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
}

    .card-body .legend-item span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 5px;
    }

.card-body .bar-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-body .bar {
    height: 10px;
    border-radius: 5px;
    margin-right: 1px;
}

.card-body .result-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.43rem
}

.card-body .result {
    text-align: center;
}

    .card-body .result .value {
        font-size: 1.3rem;
        font-weight: bold;
        margin-top: 5px;
    }

.add-user{
    float:right;
    margin-top: 10px;
}
/*#endregion */
/*#region 캘린더 */
/* 달력 컨테이너 */
.calendar-container {
    width: 100%;
    max-width: 385px;
}

/* 요일 레이블 스타일 */
.week-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 5px;
    text-align: center;
    color: #393939;
}

    .week-labels div {
        padding: 0.3em 0.6em;
        font-size: 13px;
        color: var(--bs-card-color);
    }

/* 달력 그리드 스타일 */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

/* 각 날짜의 스타일 */
.day {
    width: 100%;
    min-height:38px;
    padding: 0.3em 0.6em;
    text-align: center;
    position: relative;
    font-size: 14px;
    color: #393939;
    box-sizing: border-box;
}

    .day.past {
        color: #6f6f6f;
    }

    .day.today {
        background-color: #4b4bff;
        color: #fff;
        border-radius: 50%;
    }

    .day.other-month {
        color: #ddd;
    }

    .day .event-dot {
        width: 5px;
        height: 5px;
        background-color: #4b4bff;
        border-radius: 50%;
        margin: 0.2em auto 0 auto;
    }

    .day.today .event-dot {
        background-color: #fff;
    }

/*#endregion */
/*#region 입력폼 */

#button-clear-addon {
    display: none;
    position: absolute;
    left: 160px;
    z-index: 10;
}

#search_all, #s_date, #e_date, .flatpickr-input {
    position:relative;
    max-width: 200px;
}

input[type="text"], input[type="password"], select.form-select {
    max-width: 200px;
}

input[type="file"] {
    max-width: 225px;
}

input[type="text"]:read-only, select:disabled {
    background: var(--bs-border-color);
    cursor: not-allowed;
}

.btn svg {
    width: 16px;
}

.btn-wd {
    min-width : 100px;
}

.search-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

select.form-control-noborder {
    -webkit-box-shadow: none;
    background-color: var(--bs-body-bg);
    border: none;
    border-radius: 4px;
    box-shadow: none;
    color: var(--bs-body-color);
    height: 34px;
    text-overflow: ellipsis;
    width: 100%;
    padding: 5px;
    font-size: 1.07em;
}
/*#endregion */
/*#region 현장관리 로고 예시 */


.sp-sidebar {
    width: 240px;
    position: relative;
    -webkit-transition: visibility .3s ease,width .3s ease,margin .3s ease;
    transition: visibility .3s ease,width .3s ease,margin .3s ease;
    z-index: 998;
    margin-top: 10px;
}

    .sp-sidebar .sidebar-header {
        background: var(--bs-body-bg);
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        border: 1px solid var(--bs-border-color);
        z-index: 999;
        width: 240px;
        -webkit-transition: width .1s ease;
        transition: width .1s ease;
    }

        .sp-sidebar .sidebar-header .sidebar-brand {
            opacity: 1;
            visibility: visible;
            -webkit-transition: opacity .5s ease;
            transition: opacity .5s ease;
            font-weight: 700;
            font-size: 25px;
            color: #000865;
            direction: ltr;
        }

        .sp-sidebar .sidebar-header .sidebar-toggler {
            width: 18px;
        }

            .sp-sidebar .sidebar-header .sidebar-toggler span {
                display: block;
                width: 100%;
                border-radius: 3px;
                height: 2px;
                background: #7987a1;
                position: relative;
            }

                .sp-sidebar .sidebar-header .sidebar-toggler span + span {
                    margin-top: 4px;
                }

/*#endregion */

/*#region 컨트롤러 */

#setControl .form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#setControl .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#setControl .form-group {
    margin-right: 15px;
}

#setControl .form-label {
    min-width: auto;
}

#setControl .form-select {
    min-width: 100px
}

#setControl label {
    margin-left: 10px;
}

/*#setControl .modal input[type="text"], .modal select, .modal button, .modal textarea {
    margin: 5px;
}*/
#setControl.modal input[type="text"], #setControl.modal select, #setControl.modal button, #setControl.modal textarea {
    margin: 5px;
}

.modal-body .table-grid {
    display: grid;
    grid-template-columns: 115px 95px 1fr 3fr;
    gap: 10px;
    margin-top: 20px;
    align-items: start;
}

    .modal-body .table-grid input {
        width: 55px;
        text-align: center;
        padding: 2px 1px;
        margin: 3px;
    }

.modal-body .trip-label {
    display: flex;
    text-align: right;
    padding-right: 10px;
}

.modal-body .vertical-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 82%;
    margin-top: 38px;
}

.modal-body .horizontal-labels {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 10px;
}

.modal-body .table-rows {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    height: 100%; /* vertical-labels와 높이 맞추기 */
}


.modal-body #tbTrip {
    width: 60px;
}

/*#endregion */

@media only screen and (max-width: 1440px){
    .card-body .result .value{
        font-size:1.2em;
    }
}
@media (max-width: 768px) {
 
}
@media only screen and (max-width: 768px) {
    .search-form {
        display:block;
    }
        .search-form .button-container {
            margin-top: 0.5rem;
            justify-content: end;
        }
    .m-clear{
        display:block;
        clear: both;
    }

    .m-max-90 {
        max-width: 90%;
    }

    .m-max-70 {
        max-width: 70%;
    }

    .m-max-50 {
        max-width: 50%;
    }

    .m-max-33 {
        max-width: 33.33%;
    }

    .m-max-30 {
        max-width: 30%;
    }
}
    .button-container {
        display: flex;
        gap: 2px;
        white-space: nowrap;
    }