/* 仓库库存盘点系统 - 自定义样式 */
/* Mobile-first, Bootstrap 5 override */

body {
    padding-bottom: 80px; /* space for FAB */
}

/* Category tabs */
.category-tabs .nav-link {
    border-radius: 0;
    padding: 10px 16px;
    font-size: 15px;
}

/* Search bar */
.search-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    padding: 8px 12px;
}

/* Product list */
.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-item:active {
    background: #f5f5f5;
}

.product-item.deleted {
    opacity: 0.5;
    background: #fff3f3;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
}

.product-spec {
    font-size: 13px;
    color: #666;
}

.product-stock {
    font-size: 18px;
    font-weight: bold;
    color: #198754;
    min-width: 50px;
    text-align: right;
}

.product-stock.zero {
    color: #dc3545;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: 28px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* Stock control area */
.stock-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.stock-control .btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 12px;
}

.stock-control input {
    width: 80px;
    text-align: center;
    font-size: 20px;
    height: 48px;
}

.current-stock {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 8px 0;
}

/* Log item */
.log-item {
    padding: 12px;
    border-left: 3px solid #0d6efd;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.log-item .log-time {
    font-size: 12px;
    color: #999;
}

.log-item .log-field {
    font-weight: 600;
    font-size: 14px;
}

.log-item .log-change {
    font-size: 14px;
}

/* Record count */
.record-count {
    padding: 8px 12px;
    color: #999;
    font-size: 13px;
}

/* Loading/empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Export button */
.export-btn {
    text-decoration: none;
    font-size: 20px;
}

/* Deleted badge */
.deleted-badge {
    background: #dc3545;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

/* Login page */
.login-container {
    max-width: 360px;
    margin: 80px auto 0;
    padding: 24px;
}
