
/* ═══════════════════════════════════════════════════════════
   PRODUCTION MODULE — DRILL-DOWN WORKSPACE
═══════════════════════════════════════════════════════════ */
.prod-workspace { }

.prod-subview {
    display: none;
    animation: fadeIn 0.2s ease;
}

    .prod-subview.active {
        display: block;
    }

.prod-subview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.prod-subview-title {
    font-family: var(--font-cond);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

.prod-subview-meta {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

.prod-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}

    .prod-breadcrumb .bc-link {
        color: var(--blue);
        cursor: pointer;
        background: none;
        border: none;
        font-family: var(--font);
        font-size: 13px;
        padding: 2px 6px;
        border-radius: 4px;
        transition: var(--transition);
    }

        .prod-breadcrumb .bc-link:hover {
            background: var(--blue-dim);
        }

    .prod-breadcrumb .bc-sep {
        color: var(--text3);
        user-select: none;
    }

    .prod-breadcrumb .bc-current {
        color: var(--text);
        font-weight: 600;
        padding: 2px 6px;
    }

.prod-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.prod-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 108px;
    position: relative;
}

    .prod-tile:hover {
        border-color: var(--blue);
        box-shadow: var(--shadow);
    }

    .prod-tile.folder {
        border-top: 3px solid var(--amber);
    }

    .prod-tile.file {
        border-top: 3px solid var(--blue);
        cursor: default;
    }

    .prod-tile.part-folder {
        border-top: 3px solid var(--purple);
    }

.prod-tile-icon {
    font-size: 30px;
    line-height: 1;
}

.prod-tile-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
    line-height: 1.3;
}

.prod-tile-meta {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.4;
}

.prod-tile-actions {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

.prod-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--text3);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

    .prod-empty-icon {
        font-size: 48px;
        margin-bottom: 12px;
        opacity: 0.5;
    }

.prod-list-table .card-header {
    border-bottom: 1px solid var(--border2);
}

tr.prod-row-link {
    cursor: pointer;
    transition: var(--transition);
}

    tr.prod-row-link:hover td {
        background: var(--blue-dim);
    }

/* Basit dosya gezgini */
.explorer-section {
    margin-bottom: 20px;
}

.explorer-section-title {
    font-family: var(--font-cond);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text2);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border2);
}

.explorer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    background: var(--surface);
    transition: var(--transition);
}

    .explorer-row.clickable {
        cursor: pointer;
    }

        .explorer-row.clickable:hover {
            background: var(--blue-dim);
            border-color: var(--blue);
        }

    .explorer-row.is-folder {
        border-left: 4px solid var(--amber);
    }

    .explorer-row.is-part {
        border-left: 4px solid var(--purple);
    }

    .explorer-row.is-file {
        border-left: 4px solid var(--blue);
    }

.explorer-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.explorer-body {
    flex: 1;
    min-width: 0;
}

.explorer-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    word-break: break-word;
    line-height: 1.3;
}

.explorer-meta {
    font-size: 13px;
    color: var(--text2);
    margin-top: 4px;
    line-height: 1.4;
}

.prod-subview-title {
    font-size: 24px !important;
}

.prod-subview-meta {
    font-size: 14px !important;
}

#customerTable td,
#partsTable td {
    font-size: 14px;
}

#customerTable strong,
#partsTable strong {
    font-size: 16px;
    font-weight: 700;
}

.excel-preview-wrap {
    overflow: auto;
    max-height: 75vh;
}

    .excel-preview-wrap table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .excel-preview-wrap th,
    .excel-preview-wrap td {
        border: 1px solid var(--border);
        padding: 6px 10px;
    }

    .excel-preview-wrap th {
        background: var(--surface2);
        font-weight: 700;
    }

.explorer-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.part-kimlik-panel {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border-top: 3px solid var(--purple);
}

@media (max-width: 700px) {
    .part-kimlik-panel {
        grid-template-columns: 1fr;
    }
}

.part-drawing-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .part-drawing-box img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

    .part-drawing-box.empty {
        color: var(--text3);
        font-size: 13px;
        text-align: center;
        padding: 16px;
    }

.part-thumb {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.part-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    font-size: 18px;
}

.kimlik-header-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .kimlik-header-grid {
        grid-template-columns: 1fr;
    }
}

.upload-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .upload-inline input[type="file"] {
        display: none;
    }

.explorer-row.is-file.clickable:hover {
    background: var(--blue-dim);
    border-color: var(--blue);
}

.file-preview-frame {
    width: 100%;
    height: 75vh;
    border: none;
    border-radius: var(--radius);
    background: var(--surface2);
}

.hidden {
    display: none !important;
}

/* Inline edit row */
.inline-edit td input, .inline-edit td select {
    margin-bottom: 0;
    padding: 6px 10px;
    font-size: 13px;
}



.qc-dropdown-wrap {
    position: relative;
    display: inline-block;
    width: 180px;
}

.qc-trigger {
    width: 100%;
    padding: 6px 28px 6px 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    margin: 0;
}

    .qc-trigger::after {
        content: '▾';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text3);
        pointer-events: none;
    }

.qc-panel {
    display: none;
    position: fixed;
    z-index: 9999;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}

    .qc-panel.open {
        display: block;
    }

.qc-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: background 0.1s;
}

    .qc-panel-item:hover {
        background: var(--bg3);
    }

    .qc-panel-item input[type=checkbox] {
        width: 14px;
        height: 14px;
        margin: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

.qc-panel-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.qc-add-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
}

    .qc-add-row input {
        flex: 1;
        margin: 0;
        padding: 5px 8px;
        font-size: 12px;
    }

    .qc-add-row button {
        padding: 5px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
