/* Digital Accounts Manager - Frontend Styles */
.digital-account-stock-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.stock-header {
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.stock-header h3 {
    color: #007cba;
    margin: 0 0 5px 0;
}

.stock-description {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.stock-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    font-size: 14px;
}

.stock-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.stock-summary {
    text-align: right;
}

.stock-count-badge {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.stock-table-container {
    overflow-x: auto;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stock-table th {
    background: #007cba;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.stock-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.stock-table tr:hover {
    background-color: #f8f9fa;
}

.in-stock { 
    color: #28a745; 
    font-weight: bold;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.low-stock { 
    color: #ffc107; 
    font-weight: bold;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.out-of-stock { 
    color: #dc3545; 
    font-weight: bold;
    background: #f8d7da;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Account selection fields */
.account-selection-fields {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.selection-field {
    margin-bottom: 15px;
}

.selection-field:last-child {
    margin-bottom: 0;
}

.selection-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.account-selection {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

@media (max-width: 768px) {
    .stock-filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .stock-summary {
        text-align: center;
    }
}