body {
}

.main-bg {
    /* The image used */
    background-image: url("/img/white-1714170_1920.jpg");
    /* Full height */
    /*height: 100%;*/
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.border-left-0 {
    border-left-width: 0px !important;
}

.border-left-1 {
    border-left-width: 1px !important;
}

.border-left-2 {
    border-left-width: 2px !important;
}

.border-left-3 {
    border-left-width: 3px !important;
}

.border-left-4 {
    border-left-width: 4px !important;
}

.border-left-5 {
    border-left-width: 5px !important;
}

.border-left-6 {
    border-left-width: 6px !important;
}

.border-left-7 {
    border-left-width: 7px !important;
}

.border-left-8 {
    border-left-width: 8px !important;
}

.border-left-9 {
    border-left-width: 9px !important;
}

.border-left-10 {
    border-left-width: 10px !important;
}


/*  Æ÷ÀÎÆ®ÇöÈ² ÆäÀÌÁö css */

.attendanceButtonContainer {
    text-align: center;
    margin: 3%;
}

.attendanceButton {
    margin: 0%;
    border: none;
    display: inline-block;
    padding: 2% 3% 2% 3%;
    border-radius: 15px;
    font-family: "paybooc-Light", sans-serif;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
    background-color: #6aafe6;
    color: #d4dfe6;
}

    .attendanceButton.disabled {
        margin: 0%;
        border: none;
        display: inline-block;
        padding: 2% 3% 2% 3%;
        border-radius: 15px;
        font-family: "paybooc-Light", sans-serif;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        text-decoration: none;
        font-weight: 600;
        transition: 0.25s;
        background-color: #b1b1b3;
        color: #d4dfe6;
    }

#rouletteContainer {
    display: flex;
    justify-content: center;
}

.rouletter {
    position: relative;
    width: 400px;
    height: 400px;
}

.rouletter-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border-radius: 350px;
    overflow: hidden;
}

.rouletter-wacu {
    width: 101%;
    height: 100%;
    background: #f5f5f2 url("/img/PointRoulettetNum.png");
    background-size: 100%;
    transform-origin: center;
    transition-timing-function: ease-in-out;
    transition: 2s;
}


.rouletter-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg); /* 180µµ È¸Àü */
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid red; /* »¡°£»öÀ¸·Î ¼³Á¤ */
}



.rouletter-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 80px;
    background: #fff;
    border-image: linear-gradient(to right, #fbfcb9be, #ffcdf3aa, #65d3ffaa);
    border: 2px solid;
}

.hidden-input {
    display: none;
}

.rouletteDiv {
    margin: 5% 10% 1% 10%;
    font-size: 160%;
}

.roulette-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.pointPagesingButton {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 1.5% 2.5% 1.5% 2.5%;
    font-size: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 10% 0 10%;
}

    .pointPagesingButton:hover:not(:disabled) {
        background-color: #0056b3;
    }

    .pointPagesingButton:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }



.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* ¹ÝÅõ¸í ¹è°æ */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* ÆË¾÷ÀÌ È­¸é À§¿¡ Ç¥½ÃµÇµµ·Ï */
}

.event-popup {
    width: 90%; /* ÆË¾÷ ³Êºñ Á¶Á¤ */
    max-width: 600px; /* ÃÖ´ë ³Êºñ */
    background: transparent; /* ¹è°æ Åõ¸í */
    border: none; /* Å×µÎ¸® Á¦°Å */
    position: relative;
    text-align: center;
    margin: 0 auto;
}

    .event-popup img {
        width: 100%; /* ÀÌ¹ÌÁö°¡ ÆË¾÷ ³Êºñ¿¡ ¸Â°Ô */
        height: auto; /* ºñÀ² À¯Áö */
        border-radius: 3% 3% 0% 0%;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* ÀÌ¹ÌÁö ±×¸²ÀÚ Ãß°¡ */
    }

.event-popup-footer {
    position: absolute; /* ¹öÆ°À» ÀÌ¹ÌÁö ¾Æ·¡¿¡ Àý´ëÀûÀ¸·Î À§Ä¡ */
    display: flex;
    justify-content: space-between; /* ¹öÆ°À» ¾çÂÊ ³¡À¸·Î ¹èÄ¡ */
    width: 100%; /* ¹öÆ°ÀÌ ÀÌ¹ÌÁöÀÇ Æø¿¡ ¸Â°Ô ´Ã¾î³ªµµ·Ï */
}

    .event-popup-footer button {
        flex: 1; /* ¹öÆ° Å©±â¸¦ µ¿ÀÏÇÏ°Ô ¼³Á¤ */
        padding: 10px 0; /* ¹öÆ° ¾ÈÂÊ ¿©¹éÀ» ÀÏÁ¤ÇÏ°Ô ¼³Á¤ */
        border: none;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: bold;
    }

        .event-popup-footer button:first-child {
            background: #ffe1e1; /* ¿¬ÇÑ ÇÎÅ© */
            color: #ff5277; /* ÁøÇÑ ÇÎÅ© ±ÛÀÚ */
        }

        .event-popup-footer button:last-child {
            background: #ff99b5; /* ÁøÇÑ ÇÎÅ© */
            color: white;
        }

.input-group-append-simple {
    background-color: inherit;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px 0px;
}

.td-seperate {
    border-top-width: 2px !important;
    border-top-style: solid !important;
    border-top-color: rgba(0, 0, 0, 0.2) !important;
}

.td-seperate-black {
    border-top-width: 2px !important;
    border-top-style: solid !important;
    border-top-color: rgba(0, 0, 0, 0.5) !important;
}

#defectRateChart, #defectPieChart {
    max-width: 100%;
    height: 400px; /* ¿øÇÏ´Â ³ôÀÌ·Î ¼³Á¤ */
    margin: 0 auto; /* Áß¾Ó Á¤·Ä */
}

.point-container {
    position: relative;
    display: inline-block;
}

.pointBubble {
    position: absolute;
    right: 10px; /* ¿ìÃø¿¡¼­ »ìÂ¦ ¿ÞÂÊÀ¸·Î ÀÌµ¿ */
    top: 100%;
    transform: translateX(0); /* À§Ä¡ Á¶Á¤ */
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    border-radius: 8px;
    font-size: 100%;
    white-space: nowrap;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    z-index: 1000;
}

.pointBubble-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

    .pointBubble-link:hover {
        text-decoration: underline;
    }

@media (max-width: 500px) {
    .pointBubble {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 10px; /* ¿ìÃø¿¡¼­ »ìÂ¦ ¿ÞÂÊÀ¸·Î ÀÌµ¿ */
        transform: translateX(0); /* À§Ä¡ Á¶Á¤ */
    }
}


/* ===============================
   ChatBot Soft / Rounded Theme
   =============================== */

/* Å×¸¶ º¯¼ö (ÇÊ¿ä ½Ã¸¸ Á¶Á¤) */
:root {
    --cb-bg: #f7f8fb;
    --cb-card-bg: #ffffff;
    --cb-border: #e8ebf0;
    --cb-text: #1f2937;
    --cb-muted: #6b7280;
    --cb-me: #4f46e5; /* ³» ¹öºí */
    --cb-bot: #eef2ff; /* º¿ ¹öºí */
    --cb-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --cb-shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
    --cb-radius-lg: 22px;
    --cb-radius-xl: 28px;
}

/* ´ÙÅ©¸ðµå(½Ã½ºÅÛ) ÀÚµ¿ ´ëÀÀ */
@media (prefers-color-scheme: dark) {
    :root {
        --cb-bg: #0b0e14;
        --cb-card-bg: #111827;
        --cb-border: #1f2937;
        --cb-text: #e5e7eb;
        --cb-muted: #9ca3af;
        --cb-me: #6366f1;
        --cb-bot: #1f2937;
        --cb-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
        --cb-shadow-md: 0 12px 32px rgba(0,0,0,.35);
    }
}

/* ÀüÃ¼ Æø & ºÎµå·¯¿î ¹è°æ */
.ChatBot-wrap {
    max-width: 100%;
    margin: 0;
    background: var(--cb-bg);
}

/* Ä«µå: ´õ µÕ±Û°í, ºÎµå·¯¿î ±×¸²ÀÚ */
.ChatBot-card {
    border-radius: var(--cb-radius-xl);
    background: var(--cb-card-bg);
    border: 1px solid var(--cb-border);
    box-shadow: var(--cb-shadow-md);
    overflow: hidden;
}

/* ³»ºÎ ·¹ÀÌ¾Æ¿ô */
.ChatBot-pane {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px); /* ÇÊ¿ä ½Ã Á¶Á¤ */
    min-height: 520px;
    padding: 16px;
    gap: 12px;
}

/* ¸Þ½ÃÁö ¿µ¿ª */
.ChatBot-messages {
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px 16px 8px;
    background: radial-gradient(1200px 500px at 100% -10%, rgba(99,102,241,.06), transparent 60%), radial-gradient(800px 400px at -10% 10%, rgba(59,130,246,.06), transparent 55%), var(--cb-card-bg);
    border-radius: calc(var(--cb-radius-xl) - 8px);
    border: 1px solid var(--cb-border);
    scrollbar-width: thin;
    scrollbar-color: var(--cb-border) transparent;
}

    .ChatBot-messages::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    .ChatBot-messages::-webkit-scrollbar-thumb {
        background: var(--cb-border);
        border-radius: 999px;
    }

/* Çà Á¤·Ä */
.ChatBot-row {
    display: flex;
    margin: 10px 0;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    animation: cb-fade-in .25s ease-out forwards;
}

.ChatBot-row--bot {
    justify-content: flex-start;
}

.ChatBot-row--me {
    justify-content: flex-end;
}

/* ¸»Ç³¼± °øÅë */
.ChatBot-bubble {
    max-width: min(78%, 860px);
    padding: .78rem .95rem;
    line-height: 1.58;
    word-break: break-word;
    white-space: pre-wrap;
    border-radius: var(--cb-radius-lg);
    border: 1px solid var(--cb-border);
    box-shadow: var(--cb-shadow-sm);
}

/* º¿/»ç¿ëÀÚ »ö»ó + ²¿¸® ¸ð¾ç */
.ChatBot-bubble--bot {
    background: var(--cb-bot);
    color: var(--cb-text);
    border-top-left-radius: 10px;
    position: relative;
}

    .ChatBot-bubble--bot::after {
        content: "";
        position: absolute;
        left: 12px;
        top: 0;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background: var(--cb-bot);
        border-left: 1px solid var(--cb-border);
        border-top: 1px solid var(--cb-border);
        border-top-left-radius: 4px;
        rotate: 45deg;
    }

.ChatBot-bubble--me {
    background: var(--cb-me);
    color: #fff;
    border-top-right-radius: 10px;
    position: relative;
    border-color: rgba(255,255,255,.18);
}

    .ChatBot-bubble--me::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 0;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background: var(--cb-me);
        border-right: 1px solid rgba(255,255,255,.22);
        border-top: 1px solid rgba(255,255,255,.22);
        border-top-right-radius: 4px;
        rotate: 45deg;
    }

/* ÀÔ·Â¹Ù */
.ChatBot-inputbar {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .6rem;
    padding: 10px;
    border-radius: calc(var(--cb-radius-xl) - 10px);
    background: color-mix(in oklab, var(--cb-card-bg) 86%, transparent);
    backdrop-filter: saturate(1.2) blur(6px);
    border: 1px solid var(--cb-border);
}

/* ÀÔ·ÂÃ¢ */
.ChatBot-input {
    min-height: 48px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0.75rem 0.75rem 0.4rem;
    font-size: 1rem;
    box-shadow: none;
    outline: none;
    border-bottom: 2px solid var(--cb-border);
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem;
}

    .ChatBot-input:focus,
    .ChatBot-input:hover {
        border-bottom: 2px solid var(--cb-border);
        box-shadow: none;
        outline: none;
    }

/* ¹öÆ° */
.ChatBot-action {
    min-width: 52px;
    height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

    .ChatBot-action svg {
        width: 28px;
        height: 28px;
    }

.ChatBot-send:active, .ChatBot-stop:active {
    transform: translateY(1px);
}

.ChatBot-send[disabled], .ChatBot-stop[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* Àü¼Û/ÁßÁö ÇÁ¸®¼Â */
.ChatBot-send {
    background: var(--cb-me);
    color: #fff;
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 6px 16px rgba(79,70,229,.2);
}

    .ChatBot-send:hover {
        box-shadow: 0 10px 26px rgba(79,70,229,.24);
    }

.ChatBot-stop {
    background: transparent;
    color: var(--cb-text);
}

/* ÀÛÀº ·Îµù ½ºÇÇ³Ê */
.ChatBot-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -2px;
    animation: cb-spin 1s linear infinite;
}

/* ½ºÆ®¸®¹Ö ¹öÆÛ È¿°ú */
.ChatBot-row--bot .ChatBot-bubble--bot.streaming {
    animation: cb-pulse 1.6s ease-in-out infinite;
}

/* ¾Ö´Ï¸ÞÀÌ¼Ç */
@keyframes cb-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cb-fade-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cb-pulse {
    0%,100% {
        box-shadow: var(--cb-shadow-sm);
    }

    50% {
        box-shadow: 0 0 0 6px color-mix(in oklab, var(--cb-bot) 40%, transparent);
    }
}

/* ¹ÝÀÀÇü */
@media (max-width: 991.98px) {
    .ChatBot-bubble {
        max-width: 92%;
    }

    .ChatBot-pane {
        height: calc(100vh - 240px);
    }
}

@media (max-width: 575.98px) {
    .ChatBot-inputbar {
        grid-template-columns: 1fr auto;
    }

    .ChatBot-stop {
        display: none;
    }
}

/* ¾È³»¹® */
.ChatBot-disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   ChatBot ¼±ÅÃÇü Áú¹® / Ç¥ Ç¥½Ã Àü¿ë ½ºÅ¸ÀÏ
   ========================================= */

/* »ó´Ü Çì´õ + ÀçÇÐ½À ¹öÆ° */
.ChatBot .ChatBot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9fafb;
}

.ChatBot .ChatBot-title {
    font-weight: 700;
    font-size: 16px;
}

.ChatBot .ChatBot-retrain-btn {
    padding: 6px 12px;
    background: #4f46e5;
    border: 1px solid #4f46e5;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

    .ChatBot .ChatBot-retrain-btn:hover:not(:disabled) {
        background: #4338ca;
    }

    .ChatBot .ChatBot-retrain-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* HTML Á¶°¢ Ç¥ ·»´õ¸µ */
.ChatBot .ChatBot-bubble .html-frag {
    white-space: normal;
}

    .ChatBot .ChatBot-bubble .html-frag .title {
        font-weight: 700;
        margin: 6px 0 10px;
    }

    .ChatBot .ChatBot-bubble .html-frag .wrap {
        overflow-x: auto;
        max-width: 100%;
    }

/* Ç¥ ÄÁÅ×ÀÌ³Ê */
.ChatBot .table-wrap {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

/* Ç¥ º£ÀÌ½º ½ºÅ¸ÀÏ */
.ChatBot .cb-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 14px;
}
    /* Çì´õ */
    .ChatBot .cb-table thead th {
        position: sticky;
        top: 0;
        background: #f4f6f8;
        font-weight: 700;
        color: #111827;
        border-bottom: 1px solid #e5e5e5;
        text-align: left;
        padding: 10px 12px;
    }
    /* ¹Ùµð ¼¿ */
    .ChatBot .cb-table tbody td {
        border-bottom: 1px solid #eef0f3;
        color: #111827;
        padding: 10px 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }
    /* ½ºÆ®¶óÀÌÇÁ, È£¹ö */
    .ChatBot .cb-table tbody tr:nth-child(even) td {
        background: #fafbfc;
    }

    .ChatBot .cb-table tbody tr:hover td {
        background: #f3f6fb;
    }
    /* Ã¹ Çà µÕ±Ù ¸ð¼­¸® */
    .ChatBot .cb-table thead th:first-child {
        border-top-left-radius: 10px;
    }

    .ChatBot .cb-table thead th:last-child {
        border-top-right-radius: 10px;
    }
    /* ¸¶Áö¸· Çà µÕ±Ù ¸ð¼­¸® */
    .ChatBot .cb-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 10px;
    }

    .ChatBot .cb-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 10px;
    }
    /* ¿­ ³Êºñ(5¿­) */
    .ChatBot .cb-table thead th:nth-child(1) {
        width: 220px;
    }
    /* °í°´»ç */
    .ChatBot .cb-table thead th:nth-child(2) {
        width: 240px;
    }
    /* ¸ðµ¨¸í */
    .ChatBot .cb-table thead th:nth-child(3) {
        width: 200px;
    }
    /* Ç°¸ñ¹øÈ£ */
    .ChatBot .cb-table thead th:nth-child(4) {
        width: 200px;
    }
    /* ³³Ç°¿¹Á¤ÀÏ */
    .ChatBot .cb-table thead th:nth-child(5) {
        width: 140px;
    }
/* ÁøÇà·ü */

/* ¸Þ´º */
.ChatBot .menu-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ChatBot .menu-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.ChatBot .menu-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ChatBot .menu-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

    .ChatBot .menu-btn:hover {
        background: #f0f4ff;
    }

/* ÇÕ°è ¶óÀÎ */
.ChatBot .sum-line {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 2px 10px;
}

/* ´õº¸±â ¹öÆ° */
.ChatBot .load-more {
    margin-top: 10px;
}

    .ChatBot .load-more button {
        padding: 8px 12px;
        border: 1px solid #e5e5e5;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
    }

        .ChatBot .load-more button:hover {
            background: #f3f4f6;
        }

/* ºü¸¥ ¾×¼Ç¹Ù(ÀçÁú¹®/ÀçÁ¶È¸) */
.ChatBot .quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

    .ChatBot .quick-actions .qa-btn {
        padding: 6px 10px;
        border: 1px solid #d7dbe3;
        border-radius: 6px;
        background: #ffffff;
        cursor: pointer;
        font-size: 13px;
    }

        .ChatBot .quick-actions .qa-btn:hover {
            background: #eef2ff;
        }

    .ChatBot .quick-actions .qa-primary {
        border-color: #4f46e5;
    }

    .ChatBot .quick-actions .qa-sep {
        color: #9aa0aa;
        padding: 0 4px;
    }

/* =========================================================
   Ãß°¡: ¸ÅÃâÇöÈ² Àü¿ë ³ÐÀº Ç¥¿Í °¡·Î ½ºÅ©·Ñ Áö¿ø ½ºÅ¸ÀÏ
   ========================================================= */

/* °¡·Î ½ºÅ©·Ñ °¡´ÉÇÑ ·¡ÆÛ */
.ChatBot .table-wrap--scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

/* ¸ÅÃâÇöÈ² Àü¿ë ³ÐÀº Ç¥ */
.ChatBot .cb-table--wide {
    border-collapse: collapse;
    table-layout: fixed;
    width: max-content;
    min-width: calc(200px + 12 * 96px + 120px);
    font-size: 14px;
    writing-mode: horizontal-tb;
}
    /* ¼¿ º£ÀÌ½º */
    .ChatBot .cb-table--wide th,
    .ChatBot .cb-table--wide td {
        white-space: nowrap;
        padding: 8px 10px;
        border: 1px solid #e5e5eb;
    }
    /* Çì´õ ½ºÅ¸ÀÏ */
    .ChatBot .cb-table--wide thead th,
    .ChatBot .cb-table--wide tbody td {
        white-space: nowrap;
        padding: 8px 10px;
        border: 1px solid #e5e5eb;
    }
    /* Çì´õ °íÁ¤ */
    .ChatBot .cb-table--wide thead th {
        background: #f4f6f8;
        font-weight: 700;
        color: #111827;
        position: sticky;
        top: 0;
        z-index: 3;
    }
        /* Ã¹ ¿­ ÁÂÃø °íÁ¤ */
        .ChatBot .cb-table--wide thead th[data-col="name"],
        .ChatBot .cb-table--wide tbody td[data-col="name"] {
            position: sticky;
            left: 0;
            z-index: 2;
            background: #fff;
            box-shadow: 2px 0 0 rgba(0,0,0,0.03);
            text-align: left;
            width: 200px;
            min-width: 200px;
            max-width: 260px;
        }
        /* ¿ùº° ¿­ */
        .ChatBot .cb-table--wide thead th[data-col="month"],
        .ChatBot .cb-table--wide tbody td[data-col="month"] {
            text-align: right;
            width: 96px;
            min-width: 96px;
            max-width: 96px;
        }
        /* ÇÕ°è ¿­ */
        .ChatBot .cb-table--wide thead th[data-col="total"],
        .ChatBot .cb-table--wide tbody td[data-col="total"] {
            text-align: right;
            width: 120px;
            min-width: 120px;
            max-width: 120px;
        }
    /* Á¤·Ä: Ã¹ ¿­Àº ÁÂÃø, ³ª¸ÓÁö´Â ¿ìÃø */
    .ChatBot .cb-table--wide th:first-child,
    .ChatBot .cb-table--wide td:first-child {
        text-align: left;
        min-width: 180px;
    }

    .ChatBot .cb-table--wide th:not(:first-child),
    .ChatBot .cb-table--wide td:not(:first-child) {
        text-align: right;
    }
    /* ¿ù ÄÃ·³ Æø ±ÕÀÏÈ­ */
    .ChatBot .cb-table--wide th[data-col="month"],
    .ChatBot .cb-table--wide td[data-col="month"] {
        width: 88px;
        max-width: 88px;
    }
    /* ÇÕ°è ÄÃ·³ °íÁ¤ Æø */
    .ChatBot .cb-table--wide th[data-col="total"],
    .ChatBot .cb-table--wide td[data-col="total"] {
        width: 110px;
        max-width: 110px;
    }
    /* Ã¹ ¿­ °íÁ¤ º¸°­ */
    .ChatBot .cb-table--wide thead th:first-child,
    .ChatBot .cb-table--wide tbody td:first-child {
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 2;
        box-shadow: 2px 0 0 rgba(0,0,0,0.03);
    }

/* ¹ÝÀÀÇü: È­¸éÀÌ Á¼À» ¶§ ÆùÆ®/ÆÐµù Ãà¼Ò */
@media (max-width: 900px) {
    .ChatBot .cb-table--wide th,
    .ChatBot .cb-table--wide td {
        padding: 6px 8px;
        font-size: 13px;
    }

        .ChatBot .cb-table--wide th:first-child,
        .ChatBot .cb-table--wide td:first-child {
            min-width: 140px;
        }
}

/* =========================================================
   Ãß°¡: ÇÏ´Ü °íÁ¤Çü "ÀÚÁÖ ¹¯´Â Áú¹®" ÆÐ³Î
   ========================================================= */

.ChatBot-faq {
    margin-top: 10px;
    border: 1px solid var(--cb-border, #e8ebf0);
    background: color-mix(in oklab, var(--cb-card-bg, #fff) 86%, transparent);
    border-radius: 16px;
    padding: 14px;
}

.ChatBot-faq-title {
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 10px;
    color: var(--cb-text, #1f2937);
}

.ChatBot-faq-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ChatBot-faq-btn {
    appearance: none;
    border: 1px solid var(--cb-border, #e8ebf0);
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: var(--cb-shadow-sm, 0 1px 2px rgba(16,24,40,.06));
}

    .ChatBot-faq-btn:hover {
        background: #f8fafc;
    }

    .ChatBot-faq-btn:focus-visible {
        outline: 2px solid rgba(79,70,229,.4);
        outline-offset: 2px;
    }

.ChatBot-faq-btn--primary {
    border-color: rgba(79,70,229,.18);
    background: #eef2ff;
}

/* ÀÔ·ÂÃ¢ ¹Ù·Î ¾Æ·¡ FAQ °£°Ý º¸Á¤ */
.ChatBot-inputbar + .ChatBot-faq {
    margin-top: 6px;
}

/* ¸ð¹ÙÀÏ¿¡¼­ FAQ ¹öÆ°À» ¼¼·Î ½ºÅÃÀ¸·Î Àü°³ */
@media (max-width: 575.98px) {
    .ChatBot-faq-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ChatBot-faq-btn {
        width: 100%;
        text-align: center;
    }
}


/* ================================
   ProductionPlan - Scroll Containers
   ================================ */

.ProductionPlan-scroll-x {
    overflow-x: auto;
}

.ProductionPlan-scroll-y {
    max-height: 70vh;
    overflow-y: auto;
}

/* ================================
   ProductionPlan - Table Base
   ================================ */

.ProductionPlan-excel-table {
    width: auto;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    /* sticky left positions (JS¿¡¼­ °»½Å) */
    --pp-left-1: 0px;
    --pp-left-2: 90px;
    --pp-left-3: 170px;
    --pp-left-4: 250px;
    --pp-left-5: 330px;
}

    .ProductionPlan-excel-table th,
    .ProductionPlan-excel-table td {
        border: 1px solid #e2e6ee;
        padding: 0;
        vertical-align: middle;
        background: #fff;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
        box-sizing: border-box;
    }

    /* Header look */
    .ProductionPlan-excel-table thead th {
        background: #f7f8fa;
        font-weight: 600;
        text-align: center;
    }

/* Header blocks */
.ProductionPlan-date-span {
    background: #eef2f7;
}

.ProductionPlan-subhead {
    background: #f3f6fb;
    font-weight: 600;
    text-align: center;
}

.ProductionPlan-process-span {
    background: #f9fbff;
    font-weight: 600;
}

/* ================================
   ProductionPlan - Inputs (ÅØ½ºÆ® +2px, ¾ÈÀß¸®°Ô)
   ================================ */

.ProductionPlan-excel-input {
    width: 100%;
    height: 34px;
    line-height: 34px;
    padding: 0 8px;
    font-size: 16px;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
}

    .ProductionPlan-excel-input:focus {
        outline: 2px solid #90c2ff;
        outline-offset: -2px;
    }

/* Ä«µå ³»ºÎ inputµµ µ¿ÀÏ */
.pp-card-input {
    width: 100%;
    height: 34px;
    line-height: 34px;
    padding: 0 8px;
    font-size: 16px;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
}

    .pp-card-input:focus {
        outline: 2px solid #90c2ff;
        outline-offset: -2px;
    }

    /* ¼ýÀÚ ÀÔ·Â ¿ìÃø Àß¸² ¹æÁö: ½ºÇÇ³Ê Á¦°Å + ÆÐµù º¸Á¤ */
    .ProductionPlan-excel-input[type="number"],
    .pp-card-input[type="number"],
    .qty-input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
        padding-left: 6px;
        padding-right: 6px;
    }

        .ProductionPlan-excel-input[type="number"]::-webkit-outer-spin-button,
        .ProductionPlan-excel-input[type="number"]::-webkit-inner-spin-button,
        .pp-card-input[type="number"]::-webkit-outer-spin-button,
        .pp-card-input[type="number"]::-webkit-inner-spin-button,
        .qty-input[type="number"]::-webkit-outer-spin-button,
        .qty-input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

/* ================================
   ProductionPlan - Align Utilities
   ================================ */

.ProductionPlan-right {
    text-align: right;
}

.ProductionPlan-center {
    text-align: center;
}

/* ¼ýÀÚ ÀÔ·ÂÀº input¿¡ ¿ìÃøÁ¤·Ä È®½ÇÈ÷ Àû¿ë */
.ProductionPlan-excel-input.ProductionPlan-right,
.pp-card-input.ProductionPlan-right,
.qty-input {
    text-align: right;
}

/* ================================
   ProductionPlan - Sticky Columns
   ================================ */

.ProductionPlan-sticky-col,
.ProductionPlan-sticky-col-2,
.ProductionPlan-sticky-col-3,
.ProductionPlan-sticky-col-4,
.ProductionPlan-sticky-col-5 {
    position: sticky;
    background: #fff;
    z-index: 2;
}

/* left positions */
.ProductionPlan-sticky-col {
    left: var(--pp-left-1);
}

.ProductionPlan-sticky-col-2 {
    left: var(--pp-left-2);
}

.ProductionPlan-sticky-col-3 {
    left: var(--pp-left-3);
}

.ProductionPlan-sticky-col-4 {
    left: var(--pp-left-4);
}

.ProductionPlan-sticky-col-5 {
    left: var(--pp-left-5);
}

/* Header sticky columns above */
.ProductionPlan-excel-table thead .ProductionPlan-sticky-col,
.ProductionPlan-excel-table thead .ProductionPlan-sticky-col-2,
.ProductionPlan-excel-table thead .ProductionPlan-sticky-col-3,
.ProductionPlan-excel-table thead .ProductionPlan-sticky-col-4,
.ProductionPlan-excel-table thead .ProductionPlan-sticky-col-5 {
    z-index: 12;
}

/* Body sticky columns */
.ProductionPlan-excel-table tbody td.ProductionPlan-sticky-col,
.ProductionPlan-excel-table tbody td.ProductionPlan-sticky-col-2,
.ProductionPlan-excel-table tbody td.ProductionPlan-sticky-col-3,
.ProductionPlan-excel-table tbody td.ProductionPlan-sticky-col-4,
.ProductionPlan-excel-table tbody td.ProductionPlan-sticky-col-5 {
    z-index: 10;
}

/* °íÁ¤¿µ¿ª°ú ¿ìÃø¿µ¿ª ±¸ºÐ¼± */
.ProductionPlan-excel-table th.ProductionPlan-sticky-col,
.ProductionPlan-excel-table td.ProductionPlan-sticky-col {
    border-right: 2px solid #b9c3d3;
}

/* °íÁ¤µÇ´Â ºÎºÐ(°íÁ¤¿­ ÀüÃ¼) ÅØ½ºÆ® +2px */
.ProductionPlan-excel-table th.ProductionPlan-sticky-col,
.ProductionPlan-excel-table td.ProductionPlan-sticky-col,
.ProductionPlan-excel-table th.ProductionPlan-sticky-col-2,
.ProductionPlan-excel-table td.ProductionPlan-sticky-col-2,
.ProductionPlan-excel-table th.ProductionPlan-sticky-col-3,
.ProductionPlan-excel-table td.ProductionPlan-sticky-col-3,
.ProductionPlan-excel-table th.ProductionPlan-sticky-col-4,
.ProductionPlan-excel-table td.ProductionPlan-sticky-col-4,
.ProductionPlan-excel-table th.ProductionPlan-sticky-col-5,
.ProductionPlan-excel-table td.ProductionPlan-sticky-col-5 {
    font-size: 16px;
}

/* ================================
   ProductionPlan - Sticky Header (vertical scroll)
   ================================ */

.pp-head-sticky thead th {
    position: sticky;
    background: #fff;
    z-index: 5;
    border-bottom: 1px solid #dee2e6;
    box-sizing: border-box;
}

.pp-head-sticky .pp-head-row-1 > th {
    top: 0;
}

.pp-head-sticky .pp-head-row-2 > th {
    top: var(--pp-h1, 36px);
}

.pp-head-sticky .pp-head-row-3 > th {
    top: calc(var(--pp-h1, 36px) + var(--pp-h2, 36px));
}

.pp-head-sticky .pp-head-row-4 > th {
    top: calc(var(--pp-h1, 36px) + var(--pp-h2, 36px) + var(--pp-h3, 36px));
}

/* ================================
   ProductionPlan - Section Total Row
   ================================ */

.ProductionPlan-section-total td,
.ProductionPlan-section-total td .ProductionPlan-excel-input {
    text-align: center !important;
}

.ProductionPlan-section-total td {
    background: #fafafa;
}

.ProductionPlan-section-total .ProductionPlan-sticky-col,
.ProductionPlan-section-total .ProductionPlan-sticky-col-2,
.ProductionPlan-section-total .ProductionPlan-sticky-col-3,
.ProductionPlan-section-total .ProductionPlan-sticky-col-4,
.ProductionPlan-section-total .ProductionPlan-sticky-col-5 {
    position: sticky;
    background: #fafafa;
    z-index: 10;
}

/* ================================
   ProductionPlan - Over Highlight
   ================================ */

.pp-over {
    background-color: #fdecec !important;
}

    .pp-over .ProductionPlan-excel-input {
        background: transparent;
    }

/* ================================
   ProductionPlan - Buttons
   ================================ */

.ProductionPlan-excel-buttons {
    display: flex;
    gap: 8px;
}

/* ================================
   ProductionPlan - Readonly Input
   ================================ */

.readonly-input {
    pointer-events: none;
    cursor: not-allowed;
}

/* ================================
   ProductionPlan - Quantity Box (optional)
   ================================ */

.ProductionPlan-qty-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    box-sizing: border-box;
}

.ProductionPlan-qty-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.qty-label {
    min-width: 40px;
    text-align: center;
    background: #eef2f7;
    border-radius: 2px;
    padding: 2px 6px;
    box-sizing: border-box;
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

.qty-input {
    width: 90px;
    height: 34px;
    line-height: 34px;
    border: none;
    background: transparent;
    outline: none;
    text-align: right;
    padding: 0 8px;
    font-size: 16px;
    box-sizing: border-box;
    min-width: 0;
}

    .qty-input:focus {
        outline: 2px solid #90c2ff;
        outline-offset: -2px;
    }

.ProductionPlan-qty-item.defect .qty-label {
    background: #fdecec;
    color: #c0392b;
}

/* ================================
   ProductionPlan - Remain (±âÁ¸ ¸¶Å©¾÷ -> °¡·Î Ä¨)
   ================================ */

.ProductionPlan-remain {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.ProductionPlan-remain-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ProductionPlan-remain-name,
.ProductionPlan-remain-val {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    box-sizing: border-box;
}

.ProductionPlan-remain-name {
    background: #f3f6fb;
    color: #445066;
}

.ProductionPlan-remain-val {
    background: #ffffff;
    color: #111;
}

/* ================================
   ProductionPlan - Card (fixed area)
   ================================ */

.pp-card {
    width: 100%;
    box-sizing: border-box;
}

.pp-card-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 8px 10px 8px;
    border-bottom: 1px solid #dee2e6;
    box-sizing: border-box;
}

.pp-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px 8px 8px;
    box-sizing: border-box;
}

.pp-card-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    box-sizing: border-box;
}

.pp-card-label {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #555;
    font-size: 15px;
    text-align: right;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-card-remain {
    align-items: start;
}

/* Ä«µå ³»ºÎ ÀÜ·® Ä¨ */
.pp-remain-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
}

.pp-remain-chip {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: #f3f6fb;
    color: #111;
    white-space: nowrap;
    box-sizing: border-box;
}

/* È¤½Ã ³²¾ÆÀÖÀ» ¼ö ÀÖ´Â ÀÜ·® °¡·Î ÄÁÅ×ÀÌ³Ê È£È¯ */
.ProductionPlan-remain-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.remain-chip {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: #f3f6fb;
    color: #111;
    white-space: nowrap;
    box-sizing: border-box;
}
/* ¼ö·® ¼½¼Ç Á¦¸ñ */
.pp-card-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    padding: 2px 0 6px 0;
    text-align: left;
}

/* Ä«µå ³»ºÎ ÀÔ·ÂÄ­ÀÌ ºñ¾îµµ 'ÀÔ·Â¿µ¿ª'ÀÌ º¸ÀÌµµ·Ï ¾ÆÁÖ ¿¬ÇÑ ¹ØÁÙ¸¸ Á¦°ø */
.pp-card-field {
    border-bottom: 1px solid #e9edf5;
}

    /* Æ÷Ä¿½º ½Ã ¹ØÁÙ °­Á¶(Å×µÎ¸® ´À³¦Àº ÃÖ¼Ò) */
    .pp-card-field:focus {
        outline: none;
        border-bottom: 2px solid #90c2ff;
    }

    /* placeholder°¡ ³Ê¹« Æ¢¸é Åæ ´Ù¿î */
    .pp-card-field::placeholder {
        color: #b8c0cc;
    }

.pp-card-text {
    min-height: 30px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .pp-card-text.ProductionPlan-right {
        justify-content: flex-end;
        text-align: right;
    }

    .pp-card-text.ProductionPlan-center {
        justify-content: center;
        text-align: center;
    }

.pp-disabled-cell {
    background: #f1f3f5 !important;
}

    .pp-disabled-cell .ProductionPlan-excel-input {
        background: #f1f3f5 !important;
        color: #8b95a1 !important;
        cursor: not-allowed;
    }

    .pp-disabled-cell .readonly-input {
        background: #f1f3f5 !important;
    }

.pp-card-value-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    column-gap: 8px;
    box-sizing: border-box;
}

.pp-card-text-number {
    justify-content: flex-end;
    text-align: right;
    padding-right: 4px;
    font-variant-numeric: tabular-nums;
}

.pp-card-action-btn {
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pp-card-action-spacer {
    width: 34px;
    min-width: 34px;
    height: 30px;
}

.ProductionPlan-process-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding-right: 2px;
}

.ProductionPlan-process-empty {
    border: 1px dashed #d5dbe5;
    border-radius: 12px;
    padding: 32px 16px;
    background: #fafbfd;
}

.ProductionPlan-process-group {
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    flex: 0 0 auto;
}

.ProductionPlan-process-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf1;
}

.ProductionPlan-process-toggle {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1f2937;
}

.ProductionPlan-process-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

    .ProductionPlan-process-arrow.is-open {
        transform: rotate(45deg);
        margin-top: -6px;
    }

.ProductionPlan-process-group-title {
    font-size: 15px;
}

.ProductionPlan-process-group-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 767.98px) {
    .ProductionPlan-process-group-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ProductionPlan-process-group-meta {
        width: 100%;
        justify-content: space-between;
    }
}

.ProductionPlan-process-modal-dialog {
    max-width: min(1400px, 96vw);
    height: calc(100vh - 2rem);
    margin: 1rem auto;
}

#productProcessModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#productProcessModal .modal-header,
#productProcessModal .modal-footer {
    flex: 0 0 auto;
}

.ProductionPlan-process-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 16px;
}

.ProductionPlan-process-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    padding-top: 2px;
    padding-bottom: 8px;
}

.ProductionPlan-process-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

/** È¸¿ø°¡ÀÔ ÆäÀÌÁö*/
.register-page {
    min-height: calc(100vh - 120px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 36px 24px;
    background: transparent;
    position: relative;
}

    .register-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.58);
        backdrop-filter: blur(1.5px);
        pointer-events: none;
    }

    .register-page > * {
        position: relative;
        z-index: 1;
    }

.register-page__inner {
    max-width: 560px;
    margin: 0 auto;
}

.register-page__inner--wide {
    max-width: 1080px;
}

.register-head,
.register-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
}

.register-head {
    align-items: end;
    margin-bottom: 14px;
}

.register-head__spacer {
    display: block;
}

.register-layout {
    align-items: stretch;
}

.register-aside,
.register-card {
    height: 100%;
}

.register-aside {
    display: block;
}

.register-logo {
    text-align: center;
}

    .register-logo a {
        color: #1f2937;
        font-size: 1.35rem;
        font-weight: 700;
        text-decoration: none;
    }

.register-logo--outside {
    margin: 0;
    text-align: center;
}

.register-aside__box,
.register-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 234, 254, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.register-aside__box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 18px;
    padding: 20px 18px;
}

    .register-aside__box h2 {
        margin: 0 0 12px;
        font-size: 1.02rem;
        font-weight: 700;
        color: #111827;
    }

.register-card {
    height: 100%;
    border-radius: 20px;
    padding: 28px 26px;
}

.register-card__header {
    margin-bottom: 18px;
    text-align: center;
}

.register-box-msg {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 500;
}

.register-title {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
}

.register-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.93rem;
}

.register-alert {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 0.91rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.register-alert-error {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.register-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.register-form-grid {
    display: grid;
    gap: 18px;
}

.register-form-grid--two {
    grid-template-columns: 1fr 1fr;
}

.register-field {
    margin-bottom: 0;
}

.register-field--compact {
    margin-bottom: 12px;
}

.register-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.register-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .register-label-row .register-label {
        margin-bottom: 0;
    }

.register-label-hint {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: nowrap;
}

.register-help,
.register-status {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b7280;
}

.register-status-success {
    color: #166534;
}

.register-status-error {
    color: #b91c1c;
}

.register-input-group {
    border: 1px solid #d7deea;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .register-input-group:focus-within {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

    .register-input-group .form-control {
        height: 50px;
        border: 0;
        padding: 0 14px;
        box-shadow: none !important;
        font-size: 0.94rem;
    }

    .register-input-group .input-group-text {
        border: 0;
        background: #ffffff;
        color: #94a3b8;
        min-width: 46px;
        justify-content: center;
    }

.register-inline-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.register-inline-actions--single {
    grid-template-columns: 1fr;
}

.register-inline-btn,
.register-btn-primary {
    height: 44px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.register-verification {
    margin: 16px 0 18px;
    padding: 16px;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.92);
}

.register-verification__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .register-verification__top strong {
        color: #111827;
        font-size: 0.98rem;
    }

.register-timer {
    color: #2563eb;
    font-size: 0.83rem;
    font-weight: 600;
}

.register-verification__buttons {
    margin-top: 4px;
}

    .register-verification__buttons .btn {
        height: 44px;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
    }

.register-submit-block {
    margin-top: 18px;
}

.register-footer {
    margin: 18px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

    .register-footer a {
        margin-left: 6px;
        font-weight: 700;
        color: #2563eb;
        text-decoration: none;
    }

.register-help-group + .register-help-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf4ff;
}

.register-help-group--last {
    margin-top: 16px;
}

.register-help-group strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e3a8a;
}

.register-help-group ul {
    margin: 0;
    padding-left: 18px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.65;
}

.register-help-contact {
    list-style: none;
    padding-left: 0 !important;
}

    .register-help-contact li {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .register-help-contact li + li {
            margin-top: 10px;
        }

    .register-help-contact span {
        font-size: 0.82rem;
        font-weight: 700;
        color: #1e3a8a;
    }

    .register-help-contact a,
    .register-help-contact em {
        font-style: normal;
        color: #4b5563;
        font-size: 0.9rem;
        word-break: break-all;
    }

.register-help-note {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #edf4ff;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .register-head,
    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-head {
        margin-bottom: 12px;
    }

    .register-head__spacer {
        display: none;
    }

    .register-form-grid--two {
        grid-template-columns: 1fr;
    }

    .register-aside {
        order: 2;
    }

    .register-card {
        order: 1;
    }

    .register-aside,
    .register-card,
    .register-aside__box {
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .register-page {
        padding: 20px 12px;
    }

    .register-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .register-title {
        font-size: 1.45rem;
    }

    .register-inline-actions {
        grid-template-columns: 1fr;
    }

    .register-verification__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-verification__buttons .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .register-label-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-label-hint {
        white-space: normal;
    }
}


/* =========================================
   GUIDE - ÀüÃ¼ CSS
   FAB °ü·ÃÀº ÇöÀç ÄÚµå ±×´ë·Î À¯Áö
   ========================================= */

/* =========================
   FAB (±âÁ¸ ÄÚµå ±×´ë·Î À¯Áö)
   ========================= */

.guide-fab-wrap {
    position: fixed;
    right: 5%;
    bottom: 6%;
    z-index: 9998;
    width: 56px;
    height: 56px;
}

.guide-fab-sub {
    display: none;
    position: absolute;
    left: 0;
    bottom: 68px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: #6f42c1;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

    .guide-fab-sub.is-open {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.guide-fab-main.is-active {
    transform: rotate(90deg);
    background-color: #6c757d;
}

.guide-fab-main {
    position: relative;
    z-index: 2;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* =========================
   Modal / Overlay
   ========================= */

.guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
}

    .guide-overlay.is-show {
        display: block;
    }

.guide-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1200px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.guide-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.guide-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.guide-modal__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.guide-modal__body {
    padding: 0;
    background: #ffffff;
}

.guide-modal__foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.guide-modal__foot--single {
    justify-content: flex-end;
}

.guide-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

/* =========================
   Main Layout
   ========================= */

.guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 620px;
}

.guide-side {
    counter-reset: guideStep;
    padding: 18px 18px 18px 22px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-content {
    padding: 24px;
    background: #ffffff;
}

/* =========================================
   GUIDE - ÀüÃ¼ CSS
   FAB À¯Áö + Bootstrap modal ±âÁØ
   ========================================= */

/* =========================
   FAB
   ========================= */

.guide-fab-wrap {
    position: fixed;
    right: 5%;
    bottom: 6%;
    z-index: 9998;
    width: 56px;
    height: 56px;
}

.guide-fab-sub {
    display: none;
    position: absolute;
    left: 0;
    bottom: 68px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: #6f42c1;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

    .guide-fab-sub.is-open {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.guide-fab-main {
    position: relative;
    z-index: 2;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .guide-fab-main.is-active {
        transform: rotate(90deg);
        background-color: #6c757d;
    }

/* =========================
   Bootstrap Modal Å©±â
   ========================= */

#modalGuide .modal-dialog,
#modalGuide .guide-modal-dialog {
    max-width: min(1400px, 95vw) !important;
    width: 95vw;
    margin: 1.25rem auto;
}

#modalGuide .modal-content,
#modalGuide .guide-modal-content {
    width: 100%;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    background: #fff;
}

#modalGuide .modal-body {
    padding: 0;
}

/* =========================
   Header / Body / Footer
   ========================= */

.guide-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.guide-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.guide-modal__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.guide-modal__body {
    padding: 0;
    background: #ffffff;
}

.guide-modal__foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.guide-modal__foot--single {
    justify-content: flex-end;
}

.guide-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #007bff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

    .guide-btn:hover {
        background: #0069d9;
    }

/* =========================
   Main Layout
   ========================= */

.guide-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 620px;
}

.guide-side {
    counter-reset: guideStep;
    padding: 18px 18px 18px 22px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-content {
    padding: 24px;
    background: #ffffff;
}

/* =========================
   Left Step Menu
   ========================= */

.guide-menu-item {
    position: relative;
    width: 100%;
    min-height: 58px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #374151;
    border-radius: 14px;
    padding: 12px 14px 12px 56px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    counter-increment: guideStep;
}

    .guide-menu-item:hover {
        background: #eff6ff;
        border-color: #93c5fd;
    }

    .guide-menu-item::before {
        content: counter(guideStep);
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #e5e7eb;
        color: #374151;
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .guide-menu-item::after {
        content: "";
        position: absolute;
        left: 27px;
        top: calc(100% + 2px);
        width: 2px;
        height: 14px;
        background: #d1d5db;
    }

    .guide-menu-item:last-child::after {
        display: none;
    }

.guide-menu-item__label {
    display: block;
    line-height: 1.35;
}

.guide-menu-item.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

    .guide-menu-item.is-active::before {
        background: #ffffff;
        color: #2563eb;
    }

    .guide-menu-item.is-active::after {
        background: #93c5fd;
    }

/* =========================
   Right Panel
   ========================= */

.guide-panel {
    display: none;
}

    .guide-panel.is-active {
        display: block;
    }

.guide-panel__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.guide-panel__desc {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.65;
}

.guide-panel__list {
    margin: 0;
    padding-left: 18px;
}

    .guide-panel__list li {
        margin-bottom: 10px;
        line-height: 1.7;
        color: #374151;
    }

/* =========================
   Shortcut Cards
   ========================= */

.guide-shortcut-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.guide-shortcut-card {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fbff;
    padding: 16px;
}

.guide-shortcut-card__title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.guide-shortcut-card__desc {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.guide-shortcut-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .guide-shortcut-card__link:hover {
        background: #1d4ed8;
        color: #ffffff;
        text-decoration: none;
    }

/* =========================
   Responsive
   ========================= */

@media (max-width: 991.98px) {
    #modalGuide .modal-dialog,
    #modalGuide .guide-modal-dialog {
        max-width: min(96vw, 1100px) !important;
        width: 96vw;
    }

    .guide-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        min-height: 560px;
    }
}

@media (max-width: 767.98px) {
    .guide-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .guide-side {
        padding: 14px;
        gap: 10px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .guide-content {
        padding: 18px;
    }

    .guide-menu-item {
        min-height: 52px;
        padding: 10px 12px 10px 50px;
        font-size: 13px;
    }

        .guide-menu-item::before {
            left: 12px;
            width: 24px;
            height: 24px;
            font-size: 12px;
        }

        .guide-menu-item::after {
            left: 24px;
            height: 10px;
        }

    #modalGuide .modal-dialog,
    #modalGuide .guide-modal-dialog {
        max-width: calc(100vw - 16px) !important;
        width: calc(100vw - 16px);
        margin: 8px auto;
    }
}



/* =========================================
   ºÒ·®·ü ÇöÈ² (DefectRate) - ¸ð¹ÙÀÏ ÃÖÀûÈ­
   ========================================= */

.defect-page {
    background: #f6f8fb;
    padding: 18px;
    border-radius: 14px;
}

.defect-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.defect-title-area h4 {
    margin: 0;
    font-weight: 700;
    color: #111827;
}

.defect-title-area p {
    margin: 6px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

/* ---- ÇÊÅÍ Ä«µå ---- */
.defect-filter-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
}

/* ---- ÅÇ ---- */
.defect-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.defect-tab-button {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    transition: all 0.15s ease-in-out;
    color: #374151;
    width: 100%;
}

    .defect-tab-button:hover {
        border-color: #93c5fd;
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
    }

    .defect-tab-button.active {
        border-color: #2563eb;
        background: #eff6ff;
        color: #1d4ed8;
    }

.defect-tab-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.defect-tab-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* ---- ¿ä¾à Ä«µå ---- */
.defect-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.defect-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

/* ÀüÃ¼ ºÒ·®·ü Ä«µå À§Çèµµ »ö»ó */
.summary-defect-rate-warning {
    border-left: 4px solid #f97316;
}

.summary-defect-rate-danger {
    border-left: 4px solid #dc2626;
}

.defect-summary-label {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.defect-summary-value {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.defect-summary-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* ---- Â÷Æ® ±×¸®µå ---- */
.defect-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.defect-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.defect-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.defect-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.defect-chart-box {
    height: 320px;
    position: relative;
}

/* ---- Å×ÀÌºí ---- */
.defect-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

/* °¡·Î ½ºÅ©·Ñ ·¡ÆÛ: ÅÍÄ¡ ½ºÅ©·Ñ + ½ºÅ©·Ñ¹Ù Ç×»ó Ç¥½Ã */
.defect-table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* ½ºÅ©·Ñ °¡´É ÈùÆ®: ½ºÅ©·Ñ¹Ù Ç×»ó º¸ÀÌµµ·Ï */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

    .defect-table-scroll-wrap::-webkit-scrollbar {
        height: 6px;
    }

    .defect-table-scroll-wrap::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 0 0 14px 14px;
    }

    .defect-table-scroll-wrap::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 999px;
    }

        .defect-table-scroll-wrap::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

    .defect-table-scroll-wrap .table {
        margin-bottom: 0;
        /* Å×ÀÌºíÀÌ ÄÁÅ×ÀÌ³Êº¸´Ù ³Ð¾îÁöµµ·Ï ÃÖ¼Ò ³Êºñ º¸Àå */
        min-width: 100%;
    }

/* sticky Ã¹ ¹øÂ° ¿­ */
.defect-sticky-table thead th.defect-sticky-col,
.defect-sticky-table tbody td.defect-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    /* ¿ìÃø ±¸ºÐ¼±À¸·Î °íÁ¤ ¿­ °æ°è Ç¥½Ã */
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
}

.defect-sticky-table thead th.defect-sticky-col {
    background: #f9fafb;
    z-index: 3;
}

/* Ã¹ ¹øÂ° ¿­ ÃÖ¼Ò ³Êºñ */
.defect-sticky-col {
    min-width: 110px;
    max-width: 160px;
    text-align: left !important;
}

.defect-table-card .table {
    margin-bottom: 0;
}

.defect-table-card thead th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}

.defect-table-card tbody td {
    vertical-align: middle;
    white-space: nowrap;
}

/* ---- ±â°£º° Å×ÀÌºí ¹ü·Ê ---- */
.defect-table-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 14px;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-dot-nodata {
    background: #d1d5db;
}

.legend-dot-future {
    background: #e5e7eb;
    border: 1px dashed #9ca3af;
}

/* ¹Ì·¡ ¿ù ¼¿ */
.month-future {
    color: #9ca3af !important;
    background: #f9fafb !important;
}

/* ---- ¹èÁö ---- */
.defect-rate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 12px;
}

.defect-rate-normal {
    background: #ecfdf5;
    color: #047857;
}

.defect-rate-warning {
    background: #fff7ed;
    color: #c2410c;
}

.defect-rate-danger {
    background: #fef2f2;
    color: #b91c1c;
}

/* ---- ºó »óÅÂ ---- */
.defect-empty {
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 48px 16px;
    text-align: center;
    color: #6b7280;
}

.defect-empty-icon {
    font-size: 36px;
    color: #d1d5db;
    display: block;
    margin-bottom: 12px;
}

.defect-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

/* ---- ¿¬µµ ÄÁÆ®·Ñ ---- */
.defect-year-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.defect-year-button {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .defect-year-button-disabled,
    .defect-year-button:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.defect-year-value {
    min-width: 120px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

/* ---- ·Îµù ---- */
.defect-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* =========================================
   ¹ÝÀÀÇü: ÅÂºí¸´ (768px ~ 991px)
   ========================================= */
@media (max-width: 991.98px) {
    .defect-page-header {
        flex-direction: column;
    }

    /* ¿ä¾àÄ«µå: 2¿­ */
    .defect-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Â÷Æ® ±×¸®µå: ¼¼·Î */
    .defect-content-grid {
        grid-template-columns: 1fr;
    }

    /* Â÷Æ® ³ôÀÌ ¼ÒÆø Ãà¼Ò */
    .defect-chart-box {
        height: 280px;
    }
}

/* =========================================
   ¹ÝÀÀÇü: ¸ð¹ÙÀÏ (~ 767px)
   ========================================= */
@media (max-width: 767.98px) {
    /* ÆÐµù ÁÙÀÌ±â */
    .defect-page {
        padding: 12px;
        border-radius: 10px;
    }

    /* ÅÇ: 3¿­ ¡æ °¢ ¹öÆ° ³ôÀÌ/ÆÐµù Ãà¼Ò */
    .defect-tabs {
        gap: 6px;
    }

    .defect-tab-button {
        padding: 10px 10px;
        border-radius: 10px;
    }

    .defect-tab-title {
        font-size: 14px;
    }

    .defect-tab-subtitle {
        font-size: 11px;
        /* È­¸éÀÌ Á¼À» ¶§ ¼­ºêÅ¸ÀÌÆ² ¼û±â±â */
        display: none;
    }

    /* ¿ä¾àÄ«µå: 2¿­ À¯Áö, ÆÐµù¡¤±Û¾¾ Ãà¼Ò */
    .defect-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .defect-summary-card {
        padding: 12px;
        border-radius: 10px;
    }

    .defect-summary-value {
        font-size: 18px;
    }

    .defect-summary-label {
        font-size: 12px;
    }

    .defect-summary-sub {
        font-size: 11px;
    }

    /* ÇÊÅÍ Ä«µå */
    .defect-filter-card {
        padding: 12px;
        border-radius: 10px;
    }

    /* Â÷Æ® ÆÐ³Î */
    .defect-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .defect-panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .defect-panel-title {
        font-size: 14px;
    }

    /* Â÷Æ® ³ôÀÌ: ¸ð¹ÙÀÏ¿¡¼­ ´õ ³·°Ô */
    .defect-chart-box {
        height: 220px;
    }

    /* ¿¬µµ ÄÁÆ®·Ñ */
    .defect-year-value {
        font-size: 20px;
        min-width: 80px;
    }

    .defect-year-button {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    /* ¹ü·Ê */
    .defect-table-legend {
        gap: 10px;
        padding: 8px 12px;
    }
}

/* =========================================
   ¹ÝÀÀÇü: ¼ÒÇü ¸ð¹ÙÀÏ (~ 480px)
   ========================================= */
@media (max-width: 480px) {
    /* ÅÇ: ¼­ºêÅ¸ÀÌÆ² ¾øÀÌ 3¿­ À¯Áö (ÀÌ¹Ì À§¿¡¼­ ¼û±è Ã³¸®) */
    .defect-tab-button {
        padding: 8px 6px;
    }

    .defect-tab-title {
        font-size: 13px;
    }

    /* ¿ä¾àÄ«µå: 2¿­ ¡æ 1¿­ (È­¸éÀÌ Á¤¸» Á¼À» ¶§) */
    .defect-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .defect-summary-value {
        font-size: 16px;
    }

    /* Â÷Æ® ³ôÀÌ ´õ ³·°Ô */
    .defect-chart-box {
        height: 200px;
    }

    /* ºó »óÅÂ ÆÐµù ÁÙÀÌ±â */
    .defect-empty {
        padding: 32px 12px;
    }

    /* Å×ÀÌºí ÆùÆ® Ãà¼Ò */
    .defect-table-card thead th,
    .defect-table-card tbody td {
        font-size: 12px;
        padding: 6px 8px;
    }

    .defect-rate-badge {
        min-width: 48px;
        padding: 3px 7px;
        font-size: 11px;
    }
}


.defect-period-table-card {
    padding: 0;
    overflow: hidden;
}

.defect-period-table-header {
    padding: 16px 16px 0;
    margin-bottom: 10px;
    align-items: flex-start;
}

.defect-period-legend {
    padding: 0 16px 12px;
    border-bottom: 1px solid #eef2f7;
}

.defect-period-table-scroll {
    width: 100%;
    border-top: 1px solid #eef2f7;
}

.defect-period-table {
    min-width: 1662px;
    table-layout: fixed;
}

    .defect-period-table thead th {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.35;
        vertical-align: middle;
        white-space: normal;
    }

    .defect-period-table tbody td {
        padding: 9px 8px;
        font-size: 12px;
        line-height: 1.35;
        vertical-align: middle;
        white-space: nowrap;
    }

    .defect-period-table .defect-sticky-col {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
    }

.defect-period-year-col {
    width: 120px;
    min-width: 120px;
}

.defect-period-target-col {
    width: 72px;
    min-width: 72px;
}

.defect-period-month-col {
    width: 90px;
    min-width: 90px;
}

@media (max-width: 768px) {
    .defect-period-table-header {
        padding: 12px 12px 0;
    }

    .defect-period-legend {
        padding: 0 12px 10px;
    }

    .defect-period-table {
        min-width: 1562px;
    }
}

.hr-page .summary-card {
    min-height: 96px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hr-page .summary-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.hr-page .summary-label {
    font-size: 13px;
    color: #6c757d;
}

.hr-page .filter-card {
    border-radius: 12px;
}

.hr-page .table tbody tr {
    cursor: pointer;
}

.hr-profile-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #fff;
}

.hr-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #6c757d;
}

.hr-section-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: none;
}

    .hr-section-card .card-header {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }

.hr-sticky-actions {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.hr-empty-area {
    padding: 36px 16px;
    text-align: center;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .hr-page .table-responsive table {
        min-width: 760px;
    }

    .hr-sticky-actions {
        position: static;
    }
}

.hr-page .hr-dept-card {
    border-radius: 12px;
}

.hr-page .hr-dept-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hr-page .hr-dept-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #ffffff;
    padding: 7px 12px;
    color: #495057;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .hr-page .hr-dept-chip:hover {
        border-color: #007bff;
        color: #007bff;
        background: #f8fbff;
    }

    .hr-page .hr-dept-chip strong {
        color: #007bff;
    }

.hr-page .btn-group .btn + .btn {
    margin-left: 0;
}
