/* ===== tabs/barcode.css - 条码生成 Tab 样式 ===== */

.panel-section {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e5e7eb;
}

.panel-section label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

/* 条码类型下拉框 */
.barcode-type-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

/* 文本框 */
.panel-section textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}
.panel-section textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.1);
}

/* 滑块 */
input[type="range"] {
    width: 100%;
    margin: 4px 0;
    accent-color: #2563eb;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 8px;
}
.btn-generate {
    flex: 1;
    padding: 10px 16px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.btn-generate:hover { background: #1d4ed8; }

/* 输出区 */
.output-section {
    background: #f8fafc;
}
.output-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.output-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* 状态信息 */
.stats {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

/* 尺寸参考表格 */
#mil-conv-table { width: 100%; font-size: 11px; border-collapse: collapse; }
#mil-conv-table th {
    text-align: left;
    padding: 3px 4px;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
#mil-conv-table td {
    padding: 3px 4px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
