* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* »ó´Ü ¹Ù */
.top-bar {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

    .top-bar .logo {
        font-size: 20px;
        font-weight: 700;
        margin-right: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .top-bar .logo .material-icons {
            font-size: 28px;
        }

        .top-bar .logo .logo-img {
            height: 40px;
            width: auto;
            object-fit: contain;
        }

    .top-bar .version {
        font-size: 12px;
        background: rgba(255,255,255,0.2);
        padding: 4px 8px;
        border-radius: 12px;
        margin-left: 8px;
    }

    .top-bar .actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .top-bar .icon-btn {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
        position: relative;
    }

        .top-bar .icon-btn:hover {
            background: rgba(255,255,255,0.1);
        }

        .top-bar .icon-btn .badge {
            position: absolute;
            top: 4px;
            right: 4px;
            background: #f44336;
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 10px;
            font-weight: 700;
        }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
}

/* ·¹ÀÌ¾Æ¿ô */
.layout {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* »çÀÌµå¹Ù */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s;
    z-index: 900;
}

    .sidebar.hidden {
        transform: translateX(-100%);
    }

.menu-item {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid transparent;
    color: #666;
}

    .menu-item:hover {
        background: #f5f5f5;
        border-left-color: #2196F3;
    }

    .menu-item.active {
        background: #E3F2FD;
        border-left-color: #2196F3;
        color: #2196F3;
        font-weight: 500;
    }

    .menu-item .material-icons {
        font-size: 24px;
    }

.sub-menu {
    padding-left: 60px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

    .sub-menu.open {
        max-height: 500px;
    }

.sub-menu-item {
    display: block;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

    .sub-menu-item:hover {
        background: #f5f5f5;
        color: #2196F3;
    }

    .sub-menu-item.active {
        color: #2196F3;
        font-weight: 500;
    }

/* ¸Þ´º ¼½¼Ç */
.menu-section {
    margin-bottom: 0;
}

/* È­»ìÇ¥ ¾ÆÀÌÄÜ */
.menu-item .arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.menu-item.active .arrow {
    transform: rotate(180deg);
}

/* ´ë½Ãº¸µå ¸µÅ© ½ºÅ¸ÀÏ */
.sidebar a.menu-item {
    text-decoration: none;
    color: inherit;
}

/* ¸ÞÀÎ ÄÁÅÙÃ÷ */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    transition: margin-left 0.3s;
}

    .main-content.full {
        margin-left: 0;
    }

.page {
    display: none;
}

    .page.active {
        display: block;
    }

/* ÆäÀÌÁö Çì´õ */
.page-header {
    margin-bottom: 24px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.breadcrumb {
    color: #999;
    font-size: 14px;
}

/* Ä«µå */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Åë°è Ä«µå */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-color: #2196F3;
    }

    .stat-card .label {
        font-size: 14px;
        color: #999;
        font-weight: 500;
    }

    .stat-card .value {
        font-size: 32px;
        font-weight: 700;
        color: #2196F3;
    }

    .stat-card .unit {
        font-size: 16px;
        font-weight: 400;
        margin-left: 4px;
    }

    .stat-card .change {
        font-size: 12px;
        color: #4CAF50;
    }

        .stat-card .change.negative {
            color: #f44336;
        }

    .stat-card.warning {
        border-color: #FF9800;
    }

    .stat-card.danger {
        border-color: #f44336;
    }

/* ¹öÆ° */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

    .btn-primary:hover {
        background: #1976D2;
    }

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

    .btn-secondary:hover {
        background: #e0e0e0;
    }

.btn-outline {
    background: white;
    color: #666;
    border: 1px solid #d0d7de;
}

    .btn-outline:hover {
        background: #f5f9ff;
        border-color: #2196F3;
        color: #2196F3;
    }

    .btn-outline.active {
        background: #E3F2FD;
        border-color: #2196F3;
        color: #1976D2;
    }

.btn-success {
    background: #4CAF50;
    color: white;
}

    .btn-success:hover {
        background: #388E3C;
    }

.btn-danger {
    background: #f44336;
    color: white;
}

    .btn-danger:hover {
        background: #d32f2f;
    }

.btn-icon {
    padding: 8px;
    border-radius: 50%;
}

/* Å×ÀÌºí */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    table thead {
        background: #f5f5f5;
    }

    table th {
        padding: 12px;
        text-align: left;
        font-weight: 600;
        color: #666;
        border-bottom: 2px solid #e0e0e0;
    }

    table td {
        padding: 12px;
        border-bottom: 1px solid #e0e0e0;
    }

    table tbody tr:hover {
        background: #f9f9f9;
    }

/* Æû */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #666;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea.form-control {
    resize: vertical;
}

    .form-control:focus {
        outline: none;
        border-color: #2196F3;
    }

.required {
    color: #f44336;
}

.form-text {
    display: block;
    margin-top: 6px;
    color: #757575;
    font-size: 12px;
}

/* °Ë»ö ÇÊÅÍ */
.search-filter {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ¹èÁö */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: #E3F2FD;
    color: #2196F3;
}

.badge-success {
    background: #E8F5E9;
    color: #4CAF50;
}

.badge-warning {
    background: #FFF3E0;
    color: #FF9800;
}

.badge-danger {
    background: #FFEBEE;
    color: #f44336;
}

.badge-info {
    background: #E0F7FA;
    color: #00BCD4;
}

.badge-secondary {
    background: #F5F5F5;
    color: #666;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-table th {
    text-align: center;
}

.calendar-day {
    height: 120px;
    vertical-align: top;
    width: 14.28%;
}

.calendar-day.other-month {
    background: #fafafa;
    color: #999;
}

.calendar-date {
    font-weight: 700;
    margin-bottom: 8px;
}

.calendar-event {
    display: block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-bottom: 4px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event.manufacturing {
    background: #1976D2;
}

.calendar-event.installation {
    background: #388E3C;
}

.calendar-event.inspection {
    background: #F57C00;
}

.calendar-event.issue {
    background: #D32F2F;
}

.issue-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.issue-details {
    min-width: 180px;
}

.issue-details summary {
    cursor: pointer;
    color: #1976D2;
    font-size: 13px;
}

.issue-detail-body {
    margin-top: 8px;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid #dce9f7;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.issue-processing {
    margin-top: 8px;
}

.requirement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.requirement-stats-enhanced .requirement-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.requirement-stat-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .requirement-stat-card .icon .material-icons {
        font-size: 28px;
        color: white;
    }

    .requirement-stat-card .icon.blue { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); }
    .requirement-stat-card .icon.green { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); }
    .requirement-stat-card .icon.orange { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); }
    .requirement-stat-card .icon.red { background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); }

.requirement-stat-card .info .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.requirement-stat-card .info .value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

    .requirement-stat-card .info .value .unit {
        font-size: 14px;
        font-weight: 400;
        color: #666;
        margin-left: 3px;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.shortage {
    background: #ffebee;
    color: #c62828;
}

.status-badge.shortage .dot {
    background: #c62828;
}

.status-badge.warning {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.warning .dot {
    background: #ef6c00;
}

.status-badge.ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.ok .dot {
    background: #2e7d32;
}

.amount.negative {
    color: #c62828;
    font-weight: 700;
}

.filter-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-toggle .toggle-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
}

    .filter-toggle .toggle-btn:hover {
        border-color: #2196F3;
        color: #2196F3;
    }

    .filter-toggle .toggle-btn.active {
        background: #2196F3;
        border-color: #2196F3;
        color: white;
    }

    .filter-toggle .toggle-btn .count {
        background: rgba(0,0,0,0.1);
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 11px;
    }

    .filter-toggle .toggle-btn.active .count {
        background: rgba(255,255,255,0.3);
    }

.selected-amount-summary {
    margin-left: 15px;
    color: #666;
}

.requirement-contract-badge {
    font-size: 11px;
}

tr.selected {
    background: #e3f2fd !important;
}

.accordion {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.accordion-header {
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .accordion-header h3 {
        margin: 0;
        font-size: 15px;
        color: #333;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.accordion-item {
    border-bottom: 1px solid #eee;
}

    .accordion-item:last-child {
        border-bottom: none;
    }

.accordion-item-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

    .accordion-item-header:hover {
        background: #f5f5f5;
    }

    .accordion-item-header .toggle-icon {
        color: #999;
        transition: transform 0.2s;
    }

    .accordion-item-header.expanded .toggle-icon {
        transform: rotate(180deg);
    }

    .accordion-item-header .contract-info {
        flex: 1;
    }

    .accordion-item-header .contract-no {
        font-weight: 600;
        color: #333;
        margin-bottom: 3px;
    }

    .accordion-item-header .contract-detail {
        font-size: 12px;
        color: #666;
    }

    .accordion-item-header .delivery-date {
        text-align: right;
    }

        .accordion-item-header .delivery-date .label {
            font-size: 11px;
            color: #999;
        }

        .accordion-item-header .delivery-date .date {
            font-weight: 500;
            color: #333;
        }

.accordion-item-body {
    display: none;
    padding: 0 20px 15px 50px;
}

    .accordion-item-body.show {
        display: block;
    }

.accordion-chip-title {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.material-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 12px;
    margin: 3px;
}

    .material-chip.shortage {
        background: #ffebee;
        color: #c62828;
    }

.btn-sm-like .material-icons {
    font-size: 16px;
}

.requirement-modal-content {
    max-width: 600px;
}

.requirement-modal-summary {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
}

    .summary-row + .summary-row {
        margin-top: 10px;
    }

.supplier-method-group {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .supplier-method-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 400;
        cursor: pointer;
    }

.status-badge.waiting {
    background: #f5f5f5;
    color: #757575;
}

.status-badge.waiting .dot {
    background: #757575;
}

.status-badge.preparing {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.preparing .dot {
    background: #e65100;
}

.status-badge.ready {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.ready .dot {
    background: #1565c0;
}

.status-badge.shipped {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.shipped .dot {
    background: #2e7d32;
}

.shipment-plan-details {
    min-width: 240px;
}

.shipment-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 20px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

    .search-form .form-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 0;
    }

    .search-form label {
        font-size: 12px;
        color: #666;
    }

    .search-form input,
    .search-form select {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
    }

        .search-form input[type="date"] {
            width: 140px;
        }

.main-area {
    display: flex;
    gap: 20px;
    height: calc(100vh - 330px);
    min-height: 500px;
}

.shipment-list-panel {
    width: 500px;
    min-width: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.shipment-detail-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.shipment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .shipment-table th {
        background: #f5f5f5;
        padding: 10px 8px;
        text-align: left;
        font-weight: 500;
        border-bottom: 2px solid #e0e0e0;
        position: sticky;
        top: 0;
    }

    .shipment-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #eee;
    }

    .shipment-table tr:hover {
        background: #e3f2fd;
        cursor: pointer;
    }

    .shipment-table tr.selected {
        background: #bbdefb;
    }

.prep-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

    .prep-badge.waiting { background: #f5f5f5; color: #757575; }
    .prep-badge.preparing { background: #fff3e0; color: #ef6c00; }
    .prep-badge.prepared { background: #e3f2fd; color: #1565c0; }
    .prep-badge.issued { background: #e8f5e9; color: #2e7d32; }

.tab-container {
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.tab-list {
    display: flex;
    gap: 0;
    padding: 0 15px;
}

.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .tab-item:hover {
        background: #e3f2fd;
    }

    .tab-item.active {
        color: #1976d2;
        border-bottom-color: #1976d2;
        font-weight: 500;
    }

    .tab-item .material-icons {
        font-size: 18px;
    }

.tab-content {
    display: none;
    padding: 15px;
}

    .tab-content.active {
        display: block;
    }

.detail-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

    .detail-form .form-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 0;
    }

        .detail-form .form-group.full-width {
            grid-column: 1 / -1;
        }

        .detail-form .form-group label {
            font-size: 12px;
            color: #666;
            font-weight: 500;
        }

        .detail-form .form-group input,
        .detail-form .form-group select,
        .detail-form .form-group textarea {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 13px;
        }

.kit-apply-section {
    margin-top: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

    .section-header h4 {
        margin: 0;
        font-size: 14px;
        color: #333;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .section-header h4 .material-icons {
            font-size: 18px;
            color: #f57c00;
        }

.kit-apply-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .kit-apply-table th {
        background: #fff3e0;
        padding: 8px;
        text-align: left;
        font-weight: 500;
        border-bottom: 2px solid #ffcc80;
    }

    .kit-apply-table td {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

.progress-bar {
    width: 60px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

    .progress-bar .fill {
        height: 100%;
        background: #4caf50;
        border-radius: 3px;
    }

.kit-items-wrapper {
    background: #fafafa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 8px;
}

.kit-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

    .kit-items-table th {
        background: #f5f5f5;
        padding: 6px 8px;
        text-align: left;
    }

    .kit-items-table td {
        padding: 6px 8px;
        border-bottom: 1px solid #eee;
    }

.check-ok {
    color: #2e7d32;
}

.check-shortage {
    color: #c62828;
}

.shipment-page-actions {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.shipment-kit-code {
    font-size: 11px;
    color: #666;
}

.shipment-kit-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.shipment-section-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.shipment-bom-table {
    background: #e8f5e9;
}

    .shipment-bom-table thead {
        background: #c8e6c9;
    }

.shipment-plan-meta {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
}

.shipment-plan-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.shipment-items-table th,
.shipment-items-table td {
    font-size: 12px;
    padding: 8px;
}

.drawing-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-converting {
    background: #e3f2fd;
    color: #1565c0;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-error {
    background: #ffebee;
    color: #c62828;
}

.drawing-details summary {
    cursor: pointer;
    color: #1976D2;
}

.drawing-detail-panel {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 12px;
    background: #e3f2fd;
    color: #1565c0;
}

/* ÅÇ */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

    .tab:hover {
        color: #2196F3;
    }

    .tab.active {
        color: #2196F3;
        border-bottom-color: #2196F3;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* ¸ð´Þ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

    .modal.show {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

    .modal-close:hover {
        background: #f5f5f5;
    }

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.product-modal-content {
    max-width: 800px;
}

.product-category-bar {
    margin-bottom: 20px;
}

.product-category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

    .tab-btn:hover {
        color: #1976D2;
    }

    .tab-btn.active {
        color: #1976D2;
        border-bottom-color: #1976D2;
    }

.product-tab-content {
    display: none;
}

    .product-tab-content.active {
        display: block;
    }

.bom-main-tab-container {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.bom-main-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .bom-main-tab-btn:hover {
        color: #2196F3;
        background: #e3f2fd;
    }

    .bom-main-tab-btn.active {
        color: #2196F3;
    }

    .bom-main-tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 3px;
        background: #2196F3;
    }

.bom-main-tab-content {
    display: none;
}

    .bom-main-tab-content.active {
        display: block;
    }

.bom-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 250px);
    min-height: 500px;
}

.tree-panel {
    width: 280px;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.tree-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

    .tree-header h3 {
        margin: 0;
        font-size: 14px;
        color: #333;
    }

.tree-search {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

    .tree-search input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
    }

.tree-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.tree-node {
    cursor: pointer;
}

.tree-folder {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

    .tree-folder:hover {
        background: #f5f5f5;
    }

    .tree-folder .material-icons {
        font-size: 18px;
        margin-right: 8px;
        color: #ffc107;
    }

    .tree-folder .arrow {
        margin-left: auto;
        font-size: 18px;
        color: #999;
        transition: transform 0.2s;
    }

    .tree-folder.expanded .arrow {
        transform: rotate(180deg);
    }

.tree-items {
    display: none;
    padding-left: 20px;
}

    .tree-items.show {
        display: block;
    }

.tree-item {
    display: flex;
    align-items: center;
    padding: 8px 15px 8px 25px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    border-left: 3px solid transparent;
    text-decoration: none;
}

    .tree-item:hover {
        background: #e3f2fd;
    }

    .tree-item.active {
        background: #e3f2fd;
        border-left-color: #2196F3;
        color: #1976D2;
        font-weight: 500;
    }

    .tree-item .material-icons {
        font-size: 16px;
        margin-right: 8px;
        color: #2196F3;
    }

.bom-count {
    margin-left: auto;
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.tree-item.active .bom-count {
    background: #2196F3;
    color: white;
}

.bom-node-status {
    margin-left: auto;
    font-size: 10px;
}

.detail-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

    .detail-title h2 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.detail-summary {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

    .detail-summary span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .detail-summary strong {
        color: #333;
    }

    .detail-summary .material-icons {
        font-size: 16px;
    }

.detail-actions {
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-content {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.bom-table {
    width: 100%;
    border-collapse: collapse;
}

    .bom-table th {
        background: #f5f5f5;
        padding: 12px 15px;
        text-align: left;
        font-weight: 500;
        font-size: 13px;
        color: #333;
        border-bottom: 2px solid #e0e0e0;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .bom-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        font-size: 13px;
    }

    .bom-table tr:hover {
        background: #f9f9f9;
    }

    .bom-table .editable-cell {
        background: #fffde7;
    }

    .bom-table .subtotal {
        text-align: right;
        font-weight: 500;
        color: #1976D2;
    }

    .bom-table .delete-btn {
        color: #f44336;
        cursor: pointer;
        padding: 5px;
    }

        .bom-table .delete-btn:hover {
            background: #ffebee;
            border-radius: 50%;
        }

.bom-total-row {
    background: #e3f2fd;
    font-weight: 600;
}

.project-bom-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.bom-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-mini {
    width: 120px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

    .progress-bar-mini .fill {
        height: 100%;
        background: #4caf50;
        border-radius: 4px;
    }

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

    .stock-indicator.shortage {
        background: #ffebee;
        color: #c62828;
    }

    .stock-indicator.warning {
        background: #fff3e0;
        color: #ef6c00;
    }

    .stock-indicator.ok {
        background: #e8f5e9;
        color: #2e7d32;
    }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

    .empty-state .material-icons {
        font-size: 64px;
        margin-bottom: 15px;
        color: #ddd;
    }

    .empty-state.compact {
        height: auto;
        padding: 24px 12px;
    }

        .empty-state.compact .material-icons {
            font-size: 40px;
            margin-bottom: 8px;
        }

.bom-modal-content {
    max-width: 900px;
}

.bom-copy-modal-content {
    max-width: 500px;
}

.bom-modal-table-container {
    max-height: 420px;
}

.bom-modal-description {
    margin-bottom: 15px;
    color: #666;
}

.bom-copy-options {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .bom-copy-options label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 400;
        cursor: pointer;
    }

.kit-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 300px);
    min-height: 500px;
}

.kit-list-panel {
    width: 450px;
    min-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.kit-detail-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h3 {
        margin: 0;
        font-size: 15px;
        color: #333;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .panel-header h3 .material-icons {
            font-size: 20px;
            color: #1976d2;
        }

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.kit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .kit-table th {
        background: #f5f5f5;
        padding: 10px 8px;
        text-align: left;
        font-weight: 500;
        border-bottom: 2px solid #e0e0e0;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .kit-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #eee;
    }

    .kit-table tr:hover {
        background: #e3f2fd;
        cursor: pointer;
    }

    .kit-table tr.selected {
        background: #bbdefb;
    }

.kit-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

    .kit-status-badge.active {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .kit-status-badge.inactive {
        background: #f5f5f5;
        color: #757575;
    }

.kit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px 0;
}

    .kit-form .form-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
    }

        .kit-form .form-group.full-width {
            grid-column: 1 / -1;
        }

        .kit-form .form-group label {
            font-size: 12px;
            color: #666;
            font-weight: 500;
            margin-bottom: 0;
        }

    .kit-form input,
    .kit-form select,
    .kit-form textarea {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
    }

        .kit-form input:focus,
        .kit-form select:focus,
        .kit-form textarea:focus {
            outline: none;
            border-color: #1976d2;
            box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
        }

.items-section {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .items-header h4 {
        margin: 0;
        font-size: 14px;
        color: #333;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .items-header h4 .material-icons {
            font-size: 18px;
            color: #f57c00;
        }

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .items-table th {
        background: #fff3e0;
        padding: 8px 6px;
        text-align: left;
        font-weight: 500;
        border-bottom: 2px solid #ffcc80;
    }

    .items-table td {
        padding: 8px 6px;
        border-bottom: 1px solid #eee;
    }

    .items-table input,
    .items-table select {
        width: 100%;
        padding: 5px 8px;
        border: 1px solid #ddd;
        border-radius: 3px;
        font-size: 12px;
    }

.btn-group {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .btn-sm .material-icons {
        font-size: 16px;
    }

.search-row {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

    .search-row input,
    .search-row select {
        padding: 6px 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 12px;
    }

    .search-row input {
        width: 120px;
    }

    .search-row select {
        width: 120px;
    }

.kit-stats {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background: #e3f2fd;
    border-bottom: 1px solid #90caf9;
    font-size: 12px;
}

    .kit-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .kit-stats .stat-label {
        color: #1565c0;
    }

    .kit-stats .stat-value {
        font-weight: 600;
        color: #0d47a1;
    }

.btn-icon-sm {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 3px;
}

    .btn-icon-sm:hover {
        background: #f5f5f5;
    }

    .btn-icon-sm.delete:hover {
        background: #ffebee;
        color: #c62828;
    }

.category-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

    .category-badge.accessory { background: #e3f2fd; color: #1565c0; }
    .category-badge.tool { background: #fff3e0; color: #ef6c00; }
    .category-badge.consumable { background: #f3e5f5; color: #7b1fa2; }
    .category-badge.safety { background: #ffebee; color: #c62828; }
    .category-badge.document { background: #e8f5e9; color: #2e7d32; }

.kit-page-actions {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.item-order-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.drag-handle {
    font-size: 18px;
    color: #999;
    cursor: grab;
}

.shipping-kit-item-row.dragging {
    opacity: 0.55;
    background: #e3f2fd;
}

/* ±×¸®µå ·¹ÀÌ¾Æ¿ô */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
}

.text-danger,
.validation-summary-errors {
    color: #c62828;
    font-size: 13px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Â÷Æ® ¿µ¿ª */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* ¾×¼Ç ¹öÆ° ¿µ¿ª */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* ¹ÝÀÀÇü */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .bom-container {
        flex-direction: column;
        height: auto;
    }

    .tree-panel {
        width: 100%;
        min-width: auto;
        max-height: 300px;
    }

    .main-area,
    .kit-container {
        flex-direction: column;
        height: auto;
    }

    .shipment-list-panel,
    .kit-list-panel {
        width: 100%;
        min-width: auto;
    }

    .detail-form {
        grid-template-columns: 1fr;
    }
}

/* ½Å±Ô ½ºÅ¸ÀÏ v2.3 */
.info-section {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

    .info-section h4 {
        color: #666;
        font-size: 14px;
        margin-bottom: 12px;
        font-weight: 600;
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

    .info-item .label {
        color: #999;
    }

    .info-item .value {
        color: #333;
        font-weight: 500;
    }

/* °ø±Þ¾÷Ã¼ Å¸ÀÔ ¹èÁö */
.supplier-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* PO »óÅÂ ¾ÆÀÌÄÜ */
.status-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .status-icon .material-icons {
        font-size: 16px;
    }

/* ¸µÅ© ¹öÆ° */
.link-btn {
    color: #2196F3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.3s;
}

    .link-btn:hover {
        color: #1976D2;
        text-decoration: underline;
    }
