/**
 * 이 파일은 서비스데스크모듈의 일부입니다. (https://www.imodules.io)
 *
 * 서비스데스크모듈 스타일을 정의한다.
 *
 * @file /modules/naddle/desk/resources/styles/Desk.ts
 * @author sungjin <esung246@naddle.net>
 * @license MIT License
 * @modified 2026. 2. 10.
 */
section[data-role='aui'] {
    height: calc(100vh);

    dialog[data-type='panel'][data-variant='window'] {
        aui-component[data-type='panel'][data-variant='form'] {
            > div[data-role='container'] {
                > div[data-role='content'] {
                    aui-component[data-type='field'] {
                        &.issue {
                            padding-top: 8px;

                            > div[data-role='container'] {
                                > label {
                                    font-size: 16px;
                                    height: auto;
                                    padding-block: 4px;
                                    font-weight: 700;

                                    > small {
                                        font-weight: normal;
                                        display: block;
                                        line-height: 16px;
                                        font-size: 12px;
                                        color: var(--aui-color-text-300);
                                        padding-bottom: 4px;
                                    }
                                }
                            }
                        }

                        &.site {
                            padding-top: 0;

                            div[data-field='radio'] {
                                label.box {
                                    border-radius: 5px;
                                    padding: 14px;

                                    > span {
                                        display: flex;
                                        flex-direction: column;
                                        gap: 4px;
                                        padding: 0;

                                        > b {
                                            display: block;
                                            width: 100%;
                                            height: 24px;
                                            line-height: 24px;
                                            font-size: 16px;
                                            white-space: nowrap;
                                            overflow: hidden;
                                            text-overflow: ellipsis;
                                        }

                                        > small {
                                            color: var(--aui-color-accent-500);
                                            font-size: 12px;
                                            height: 14px;
                                            line-height: 14px;
                                        }
                                    }

                                    &:has(input:checked) {
                                        > span {
                                            > small {
                                                color: var(--aui-color-accent-backward-500);
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        &.category {
                            div[data-role='content'] {
                                aui-component[data-type='field'][data-variant='radiogroup'] {
                                    label.box {
                                        border-radius: 5px;
                                        padding: 8px;
                                        height: 100%;

                                        > span {
                                            display: flex;
                                            flex-direction: column;
                                            padding: 0;
                                            align-items: center;

                                            > i {
                                                width: 42px;
                                                height: 42px;
                                                mask-image: url(../images/icons/radio.svg);
                                                background-color: var(--im-color-accent-500);
                                                mask-size: 32px 32px;
                                                mask-repeat: no-repeat;
                                                mask-position: 50% 50%;
                                            }

                                            > b {
                                                text-align: center;
                                                height: 24px;
                                                line-height: 24px;
                                                font-size: 14px;
                                                white-space: nowrap;
                                                overflow: hidden;
                                                text-overflow: ellipsis;
                                            }

                                            > small {
                                                color: var(--aui-color-accent-500);
                                                font-size: 12px;
                                                height: 14px;
                                                line-height: 14px;
                                            }
                                        }

                                        &:has(input:checked) {
                                            > span {
                                                > i {
                                                    mask-image: url(../images/icons/radio_checked.svg);
                                                    background-color: var(--aui-color-accent-backward-500);
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
