/* sidebar */
.sidebar {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    width: 240px;
    background-color: #f6f8f9;
    border-right: 1px solid #f0f0f0;
    overflow: hidden;
}

.sidebar__scroll {
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    padding: 16px;
    gap: 20px;
    overflow-y: auto;
}

.sidebar__logo-link {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 36px;
}

.sidebar__logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.sidebar__logo-link:hover::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url("./img/sidebar/btn_more.svg") center center / contain no-repeat;
    filter: drop-shadow(1px 1px 2px #00000033);
    transition: transform 0.2s ease;
}

.sidebar__organization {
    width: 100%;
    margin-top: 20px;
}

.sidebar__organization > .dropdown {
    width: 100%;
}

.sidebar__group-label {
    margin-bottom: 12px;
    font-size: 11px;
    color: #d1d1d1;
}

.sidebar__item {
    font-size: 14px;
    color: #4b4b4b;
}

.sidebar__item.open {}

.sidebar__item > button,
.sidebar__item > a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    text-align: left;
    gap: 12px;
}

.sidebar__item-icon {
    width: 20px;
    height: 20px;
}

.sidebar__item-txt {
    flex: 1;
    line-height: 20px;
}

.sidebar__toggle {
    width: 100%;
}

.sidebar__item > a.active {
    color: #0099ff;
    font-weight: 600;
}

.sidebar__item > a.active > .sidebar__item-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(1200%) hue-rotate(185deg) brightness(98%) contrast(105%);
}

.sidebar__item .sidebar__arrow {
    transition: transform 0.2s ease;
}

.sidebar__item.open .sidebar__arrow {
    transform: rotate(180deg);
}

.sidebar__item--util {
    color: #8a8a8a;
}

.sidebar__sub-list {
    padding: 0 0 8px 12px;
}

.sidebar__sub-item > a {
    display: inline-block;
    padding: 8px 24px;
    border-left: 2px solid #d1d1d1;
    color: #4b4b4b;
    font-weight: 400;
}

.sidebar__sub-item > a.active {
    border-left: 2px solid #0099ff;
    color: #0099ff;
    font-weight: 600;
}

.sidebar__group--utill {
    padding: 16px;
    flex-shrink: 0;
}

/* Layout Utilities */
.none {
    display: none;
}

.row-wrapper {
    display: flex;
    position: relative;
    align-items: center;
    gap: 10px;
}

.gap-double {
    gap: 20px;
}

.row-double {
    grid-row: span 2;
    height: 100%;
}

.space-between {
    justify-content: space-between;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-group--s {
    gap: 4px;
}

.form-btn-group {
    display: flex;
    justify-content: right;
    gap: 12px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #0099ff;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.btn--border {
    background-color: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
}

.action-btn {
    display: flex;
    align-items: center;
    width: auto;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #eeeeee;
    font-size: 14px;
    font-weight: 600;
    color: #8a8a8a;
    gap: 6px;
}

.action-btn.blue {
    background-color: #d9f0ff;
    color: #0099ff;
}

.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
}

.icon-btn__icon {
    width: 20px;
    height: 20px;
}

.icon-btn--border {
    border: 1px solid #d3d3d3;
    border-radius: 4px;
}

/* Header */
.main__header {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
}

.main__title {
    font-size: 20px;
    font-weight: 700;
}

/* Input Elements */
.input-wrapper {
    position: relative;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    text-align: left;
}

.input-box.input-box--s {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 28px;
    padding: 0 8px;
}

.input-box.read-only {
    padding: 0;
    border: none;
    background-color: transparent;
}

.input-box--area {
    align-items: flex-start;
    flex: 1;
    height: 100%;
    align-self: stretch;
    resize: none;
}

input:focus,
input:focus-visible {
    outline: none;
    border: 1px solid #8a8a8a;
}

.input-box--search {
    width: 240px;
    height: 44px;
    padding: 12px 14px 12px 42px;
}

.input-wrapper__icon {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    transform: translateY(-50%);
}

.input-box__clear {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.input-box--s .input-box__clear {
    transform: scale(90%) translateY(-56%);
    right: 4px;
}

.input-file {
    flex: 1;
    position: relative;
    padding: 0;
    height: auto;
}

.input-file__btn {
    cursor: pointer;
}

.input-file__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.input-file__item {
    position: relative;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 6px 32px 6px 12px;
}

.input-file__file-name {
    font-size: 14px;
    text-decoration: underline;
}

.input-file__clear {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.input-file__guide {
    font-size: 12px;
    color: #8a8a8a;
    text-align: right;
    margin-top: 4px;
}

input::placeholder,
textarea::placeholder,
.placeholder {
    color: #8a8a8a;
}

.guide-txt {
    position: absolute;
    left: 110px;
    bottom: -16px;
    font-size: 12px;
    color: #8a8a8a;
}

/* Dropdown */
.dropdown {
    width: 160px;
    position: relative;
    color: #3a3a3a;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    width: 100%;
}

.dropdown-txt {
    flex: 1;
    pointer-events: none;
}

.dropdown-arrow {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.dropdown.open .dropdown-arrow {
    transform: rotate(0deg);
}

.dropdown.read-only .dropdown-arrow {
    display: none;
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    height: auto;
    max-height: 240px;
    padding: 8px;
    overflow-y: auto;
    z-index: 1;
}

.dropdown.open .dropdown-list {
    display: block;
}

.input-box--s .dropdown-list {
    width: auto;
    top: 34px;
}

.dropdown-item {
    cursor: default;
    padding: 4px 6px;
    border-radius: 4px;
}

.dropdown-item:not(:last-child) {
    margin-bottom: 8px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.disabled {
    color: #8a8a8a;
    font-size: 12px;
    margin-bottom: 6px;
}

.dropdown-item.selected {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* checkbox, radio */
.check-group {
    height: 44px;
    align-items: center;
}

.input-check {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Table */
.table__item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f7f7f7;
}

.table__header {
    background-color: #f7f7f7;
    font-weight: 600;
}

.table__cell {
    display: flex;
    align-items: center;
    width: 120px;
    min-width: 48px;
    height: 48px;
    padding: 12px;
    font-size: 14px;
}

.cell-grow {
    flex: 1;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-48 {
    width: 48px;
}

/* Pagination */
.page-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.page-list__arrow {
    width: 24px;
    height: 24px;
}

.page__item.selected {
    color: #0099ff;
    font-weight: 700;
}

/* Role Badge */
.role {
    padding: 6px 12px;
    background-color: #d9f0ff;
    color: #0099ff;
    font-weight: 700;
    border-radius: 4px;
}

.role.admin {
    background-color: #ffdede;
    color: #ff6d6d;
}

.role.concierge {
    background-color: #cdffc7;
    color: #63b91d;
}

/* Detail Form */
.detail__title {
    font-size: 16px;
    font-weight: 500;
}

.detail__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-top: 12px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    gap: 24px 40px;
}

.detail__form--single {
    grid-template-columns: 1fr;
    gap: 24px;
}

.detail__form--gap-half {
    gap: 12px;
}

.detail__form > .row-wrapper {
    align-items: flex-start;
}

.detail__form--single > .row-wrapper {
    align-items: center;
}

.detail__form--triple {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.detail__label {
    display: flex;
    align-items: center;
    width: 100px;
    height: 44px;
    flex-shrink: 0;
    color: #8a8a8a;
    font-size: 14px;
}

.detail__input {
    flex: 1;
}

.detail__input-edit {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 28px;
    padding: 0 12px;
    background-color: #eeeeee;
    color: #8a8a8a;
    font-size: 14px;
    line-height: 28px;
    font-weight: 600;
    border-radius: 4px;
}

.detail__guide {
    position: absolute;
    top: 50px;
    left: 110px;
    font-size: 12px;
    color: #8a8a8a;
}

.detail__border {
    border-bottom: 1px solid #eee;
}

.detail__org-wrapper {
    position: relative;
}

.detail__logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.detail__org-name {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0;
}

.detail__org-btn {
    position: absolute;
    top: 0;
    right: 0;
}

.detail__org-guide {
    top: inherit;
    bottom: 0;
    left: inherit;
    right: 0;
    font-size: 14px;
}

/* 업무 요청 */
.request__title {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    background-color: #f7f7f7;
}

.request__item {
    display: flex;
    flex-direction: column;
    padding: 24px 12px;
    border-top: 1.5px solid #e8e8e8;
    gap: 20px;
}

.request__item:first-child {
    border-top: none;
}

.request__cell {
    min-width: 120px;
}

.request__label {
    font-size: 13px;
    color: #8a8a8a;
    font-weight: 500;
    margin-bottom: 6px;
}

.request__con {
    display: flex;
    align-items: center;
    font-size: 14px;
    min-height: 28px;
}

.request__btn-group {
    gap: 20px;
}

.request__done {
    font-size: 14px;
}

.request__done-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request__done-header {
    color: #8a8a8a;
    margin-bottom: 5px;
}

.request__done-item {
    align-items: flex-start;
}

.request__cell--con {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-item {
    display: flex;
    max-width: 100%;
    height: 20px;
    align-items: center;
    font-size: 14px;
    text-decoration: underline;
    gap: 2px;
}

.label-toggle {
    position: relative;
    width: 100%;
    height: 20px;
    text-align: left;
}

.label-toggle__arrow {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.label-toggle.open .label-toggle__arrow {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

/* 고객사 관리 */
.org-item{
    position: relative;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d3d3d3;
    background-color: #fff;
    overflow: hidden;
}

.org-item__logo{
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.org-item__name{
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-item__tag-group{
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: 12px;
    height: 24px;
    gap: 8px;
}

.org-item__tag{
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 24px;
    padding: 0 4px;
    border-radius: 4px;
    background-color: #d9f0ff;
    font-weight: 600;
    font-size: 14px;
    color: #0099ff;
}

.org-item__wrapper{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.org-item__btn{
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 28px;
    margin: 0 -8px;
    padding: 0 12px;
    background-color: #f3f5f7;
    color: #b0bec5;
    font-size: 14px;
    line-height: 28px;
    font-weight: 700;
    border-radius: 99px;
    gap: 6px;
}

.status-badge.blue {
    background-color: #d9f0ff;
    color: #0099ff;
}

.status-badge.red {
    background-color: #ffdede;
    color: #ff6d6d;
}

.status-badge.green {
    background-color: #dcf3d9;
    color: #11ae00;
}

/* 기본 팝업 */
.popup {
    display: flex;
    flex-direction: column;
    width: 460px;
    padding: 40px;
    border-radius: 16px;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
    gap: 40px;
}

.popup__title {
    font-size: 18px;
    font-weight: 700;
}

.popup__btn-group {
    display: flex;
    gap: 16px;
}

.popup__btn {
    flex: 1;
}

@media only screen and (max-width: 420px) {
    .popup {
        width: 100%;
        padding: 30px;
        gap: 30px;
    }

    .popup__btn-group {
        gap: 10px;
    }
}

/* 탭 */
.main__tab-group {
    display: flex;
    align-items: end;
    gap: 20px;
    border-bottom: 1px solid #d1d1d1;
}

.main__tab {
    padding: 8px 16px;
    font-size: 16px;
}

.main__tab.active {
    border-bottom: solid;
    border-bottom-color: #0099ff;
    font-weight: 500;
}

.main-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-loading__title {
    display: flex;
    font-size: 20px;
    font-weight: 700;
}

.main-loading__title {
    display: flex;
    gap: 4px;
}

.main-loading__title-dot::after {
    content: "";
    animation: dots 4s infinite;
}

@keyframes dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: ". .";
    }

    75% {
        content: ". . .";
    }

    100% {
        content: "";
    }
}

/* Utility */
.txt-red {
    color: #ff6d6d;
}

.txt-gray {
    color: #8a8a8a;
}

.read-only {
    pointer-events: none;
}

.custom-link {
    color: #0099ff;
    /* 원하는 색상 */
    text-decoration: underline;
    /* 언더라인 */
    font-weight: 500;
    /* 옵션: 굵기 */
}

.bg-gray{
    background-color: #f7f7f7;
}

.bg-blue{
    background-color: #F2FAFF;
}
