/* === ÀüÃ¼ ¹è°æ ¹× ÆùÆ® === */
body {
    background: #FDF9F6;
    font-family: 'SUIT', 'Noto Sans KR', sans-serif;
    color: #555;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === ERP ÄÁÅ×ÀÌ³Ê === */
.oranda-erp {
    max-width: 1200px;
    width: 95%;
    margin: 40px auto;
    padding: 30px;
    background: #FFFDF9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

/* === ÅÇ ¸Þ´º === */
.oranda-erp .erp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.oranda-erp .erp-tabs li {
    padding: 10px 22px;
    cursor: pointer;
    background: #EDE7F6;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    color: #4A4A4A;
}

.oranda-erp .erp-tabs li.active {
    background: #9575CD;
    color: #fff;
}

/* === ÅÇ ÄÜÅÙÃ÷ === */
.oranda-erp .erp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    color: #555;
    font-weight: 400;
}

.oranda-erp .erp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(5px);}
    to {opacity: 1; transform: translateY(0);}
}

/* === Ä«µåÇü Æû === */
.erp-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.erp-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 400;
    color: #555;
}

/* === Æû ·¹ÀÌ¾Æ¿ô === */
.erp-card form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
}

.erp-card form .form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px; /* ÃÖ¼Ò 200px È®º¸, °ø°£¿¡ ¸ÂÃç ´Ã¾î³² */
}

.erp-card form .form-group label {
    font-weight: 400;
    color: #555;
    margin-bottom: 4px;
}

.erp-card input,
.erp-card select,
.erp-card textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    height: 40px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    width: 100%;
}

.erp-card textarea {
    height: 80px;
    resize: vertical;
}

.erp-card input:focus,
.erp-card select:focus,
.erp-card textarea:focus {
    border-color: #9575CD;
    box-shadow: 0 0 4px rgba(149,117,205,0.25);
    outline: none;
}

/* === ¹öÆ° ÅëÀÏ === */
.oranda-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 38px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    padding: 0;
    box-sizing: border-box;
}

.oranda-btn.save {
    background: #B39DDB;
    color: #fff !important;
}

.oranda-btn.save:hover {
    background: #9575CD;
}

.oranda-btn.reset {
    background: #D1C4E9;
    color: #fff !important;
}

.oranda-btn.reset:hover {
    background: #B39DDB;
}

/* === Å×ÀÌºí ½ºÅ¸ÀÏ === */
.erp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.erp-table th,
.erp-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.erp-table thead {
    background: #EDE7F6;
    color: #555;
    font-weight: 400;
}

.erp-table tbody tr:nth-child(odd) {
    background: #fff;
}

.erp-table tbody tr:nth-child(even) {
    background: #F7F3FB;
}

.erp-table tbody tr:hover {
    background: #E8E3F8;
}

.erp-table .oranda-btn {
    width: 100px;
    height: 32px;
    font-size: 13px;
    font-weight: 400;
    padding: 0;
    line-height: 32px;
}

.erp-table .oranda-btn.delete {
    background: #FF8A80;
}

.erp-table .oranda-btn.delete:hover {
    background: #FF5252;
}

/* === ¹ÝÀÀÇü === */
@media (max-width: 768px) {
    .oranda-erp {
        padding: 15px;
    }
    .oranda-erp .erp-tabs {
        gap: 6px;
    }
    .oranda-erp .erp-tabs li {
        padding: 6px 10px;
        font-size: 13px;
    }
    .erp-card form .form-row {
        flex-direction: column;
    }
    .erp-card form .form-group {
        flex: 1 0 100%;
    }
    .erp-table th,
    .erp-table td {
        font-size: 12px;
        padding: 8px;
    }
    .erp-table .oranda-btn {
        width: 100%;
        height: 32px;
        font-size: 12px;
        line-height: 32px;
    }

    /* === ¸ð¹ÙÀÏ ÁÖ¹® ¸®½ºÆ® °¡·Î ½ºÅ©·Ñ Ã³¸® === */
    .orders-list {
        overflow-x: auto;
    }
    .erp-table {
        min-width: auto;
        display: table;
    }
    .erp-table th,
    .erp-table td {
        white-space: nowrap;
    }

    /* === ¸ð¹ÙÀÏ¿ë ÄÃ·³ Æø ÃÖÀûÈ­ === */
    .erp-table th:nth-child(2), .erp-table td:nth-child(2),
    .erp-table th:nth-child(3), .erp-table td:nth-child(3),
    .erp-table th:nth-child(4), .erp-table td:nth-child(4)
    {
        width: 80px;
    }

    .erp-table th:nth-child(6), .erp-table td:nth-child(6),
    .erp-table th:nth-child(7), .erp-table td:nth-child(7)
    {
        width: 60px;
        text-align: right;
    }

    .erp-table th:nth-child(8), .erp-table td:nth-child(8)
    {
        width: 70px;
        text-align: right;
    }

    .erp-table th:last-child,
    .erp-table td:last-child {
        width: 90px;
    }
}
